Re: Access to comp.lang.python

2010-05-16 Thread Jim Byrnes
on MUAs too :) Thanks for the responses. Is it possible to connect a newsreader to gmane? nntp://news.gmane.org/ Could someone please explain how to subscribe to this list on gmane. I subscribe to a couple of other groups there but can't find this one. Regards, Jim -- http://mail.py

Re: Python Forum

2010-06-04 Thread Jim Byrnes
If I want fast internet I must use Comcast and Comcast doesn't offer newsgroups either. Sadly is seems getting access to newsgroups is getting harder and harder. I much prefer newsgroups or email lists to web forums. Regards, Jim -- http://mail.python.org/mailman/listinfo/python-list

source install of python2.7 and rpm install of cx_Oracle collision

2010-07-21 Thread Jim Qiu
me what I need to do ? I want a libpython2.7.so.1.0 generated when I install python. I am not familiar with GCC and .so .a stuff. Best regards, Jim -- http://mail.python.org/mailman/listinfo/python-list

How to output a complex List object to a file.

2009-06-22 Thread Jim Qiu
x27;MOA',MIN:0,MAX:5}, {ID:'PRI',MIN:0,MAX:5}, {ID:'QTY',MIN:0,MAX:999,LEVEL:[ {ID:'NAD',MIN:0,MAX:1}, ]}, ]}, ]}, {ID:'UNT',MIN:1,MAX:1}, ] } ] I need to output this "structure" object into a file, how to do that ? Jim -- http://mail.python.org/mailman/listinfo/python-list

Re: Soap with python?

2009-09-08 Thread Jim Wilson
On 09/08/2009 08:40 AM, Otto Hellwig wrote: > reccommend [sic ...] the best soap library ... Client side only? Suds (https://fedorahosted.org/suds/). Accept no subsitute! -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] possible attribute-oriented class

2009-09-08 Thread Jim Jewett
On Mon, Sep 7, 2009 at 9:02 PM, Jan Kaliszewski wrote: > 08-09-2009 o 02:15:10 Steven D'Aprano wrote: >> ... what's wrong with this? > a['xyz'] = something['blablabla'] + somethingelse['foobar'] > b['ababababa'] += afun(bobo['dodo']['kookoo'] * pofopofo['gh'][0]['a']) > cupu['abc'] = (kukumunu['

Re: os.execv Overhead

2009-09-16 Thread Jim Wilson
On 09/16/2009 11:12 AM, mark.mcdow...@gmail.com wondered about: > overhead of [fork/exec]: An alternative might be os.spawn?(), etal. It might run a tiny bit faster because it combines the two operations, but I think you're pretty close to the metal. Jim -- http://mail.python.org

Determine sockets in use by python

2010-09-29 Thread Jim Mellander
Hi: I'm a newbie to python, although not to programming. Briefly, I am using a binding to an external library used for communication in a client-server context, with the server in python. Typically, I would set this up with event callbacks, and then enter a select loop, which, most the time idle

Re: Determine sockets in use by python

2010-09-29 Thread Jim Mellander
ote: > On 09/29/2010 09:50 AM, Jim Mellander wrote: >> >> Hi: >> >> I'm a newbie to python, although not to programming.  Briefly, I am >> using a binding to an external library used for communication in a >> client-server context, with the server in pyth

Re: Determine sockets in use by python

2010-09-30 Thread Jim Mellander
info, folks. On Thu, Sep 30, 2010 at 7:14 AM, Jean-Paul Calderone wrote: > On Sep 29, 4:08 pm, Jim Mellander wrote: >> >> On Wed, Sep 29, 2010 at 11:05 AM, Gary Herron wrote: >> > On 09/29/2010 09:50 AM, Jim Mellander wrote: >> >> >> Hi: >> >

Printing

2004-12-20 Thread Jim & Joanne Collins
I've completed a semester of computer programming in Python and one thing we didn't learn was how to send data to a windows printer instead of the screen.  I've also asked this question in one of the Python help places and received about three responses.  None of them worked.   I'm totally a

Fw: Printing

2004-12-21 Thread Jim & Joanne Collins
Craig, Thank you very much for your response. I've interspersed my questions in your reply. If you have answers to my question I would be extremely gratefull for your assistance! Thanks. Jim Collins - Original Message - > From: "Craig Ringer" <[EMAIL P

Computer locks up when running valid stand alone Tkinter file.

2006-10-25 Thread jim-on-linux
to the canvass. That's all it does. Replace the img9.jpg file with one of your own, put the image in the current working dir., and run. If you think you can help, I would appreciate it. jim-on-linux #!/usr/bin/env p

Re: Slightly OT: Is pyhelp.cgi documentation search broken?

2006-10-26 Thread jim-on-linux
On Thursday 26 October 2006 04:01, you wrote: > Hi! > > For a number of days I haven't been able to > search the online python docs at: > > http://starship.python.net/crew/theller/pyhelp. >cgi > Joel, Try here, [EMAIL PROTECTED] jim-on-linux http://www.inqvista

Re: How to Split Chinese Character with backslash representation?

2006-10-27 Thread jim-on-linux
7; at the end of a line doesn't show. To show it must be preceeded by another '\' like this '\\' figgure out a way to start with '\\' and you'll be ok. x = str.split('\\xc5\\xeb\\xc7\\xd5\\xbc', '\\') print x, '## x on line 1

Re: Computer locks up when running valid stand alone Tkinter file.

2006-10-29 Thread jim-on-linux
puter lockup). Give Yview a parent, problem solved. Changed pack to grid anyway. jim-on-linux http://www.inqvista.com On Wednesday 25 October 2006 23:05, you wrote: > > But, when I call it from another module it > > locks > > methinks this "other module" has t

Re: lossless transformation of jpeg images

2006-10-29 Thread jim-on-linux
e :)) for > > the jpegtran utility of the Independent Jpeg > > Group. Why not use Tkinter for jpeg ?? jim-on-linux http://www.inqvista.com > > > > The jpegtran utility is written in C and is > > very efficient, fast and robust. It can > > rotate, flip, tr

Re: looping through two list simultenously

2006-10-29 Thread jim-on-linux
hink about a while loop. jim-on-linux http://www.inqvista.com > Here is the code i am using > > f1 = os.popen('ls chatlog*.out') > data1=f1.readlines() > f1.close() > > data1=[x.strip() for x in data1] > f1 = os.popen('ls chatlog*.txt') > data=f1.

Re: How to Split Chinese Character with backslash representation?

2006-10-29 Thread jim-on-linux
On Friday 27 October 2006 17:21, jim-on-linux wrote: > On Thursday 26 October 2006 23:43, you wrote: > > Hi all, > > > > I was trying to split a string that > > > > represent chinese characters below: > > >>> str = '\xc5\xeb\xc7\xd5\xbc' &

Re: best way to check if a file exists?

2006-10-31 Thread jim-on-linux
ame exists before the user creates a new file > of that name. > > Thanks. How about something like one of these; if os.path.isfile(vfileName) not True : male file or if os.path.isfile (os.path.join(os.getcwd(), vFileName) )==True : do something ji

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-02 Thread jim-on-linux
ou have to consider if it is worth it. At least you have the name of your program listed. I wish I could be more helpfull. I'll watch the responses you get from others. Good Luck, jim-on-linux http://www.inqvista.com On Thursday 02 November 2006 09:00, you wrote: > Some time ag

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread jim-on-linux
On Thursday 02 November 2006 14:59, Frederic Rentsch wrote: > jim-on-linux wrote: > > Frederic, > > > > I've been trying to get back into my package > > in the Cheese Shop for over a year. The phone > > company changed my e:mail address and to make > >

Re: SE 2.3 temporarily unavailable. Cheese shop defeats upload with erratic behavior. Urgently requesting help.

2006-11-03 Thread jim-on-linux
On Friday 03 November 2006 08:21, Steve Holden wrote: > Frederic Rentsch wrote: > > jim-on-linux wrote: > >>Frederic, > >> > >>I've been trying to get back into my package > >> in the Cheese Shop for over a year. The > >> phone co

Re: disabledforeground or similar for Entry (in Tkinter)

2006-11-04 Thread jim-on-linux
ges the color > of the Entry widget upon disabling. > > There must be something I'm missing here... Have you tried the state option ? state = 'disabled' It works for Text, Entry, and Button. Once disabled you won't be able to make changes until state= 'normal' jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: disabledforeground or similar for Entry (in Tkinter)

2006-11-04 Thread jim-on-linux
x27;yellow', width = 15, height = 10) test1.grid(row=0, column=0) test1.grid_forget() test2 = Button(root, text='Test #2 button', bg = 'green', width = 15, height = 10) test2.grid(row=0, column=0) mainloop() jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: disabledforeground or similar for Entry (in Tkinter)

2006-11-05 Thread jim-on-linux
st1, height = 8) self.test2.grid(row=0, column=0) if __name__== '__main__' : Ktest() mainloop() jim-on-linux http://www.inqvista.com > On Saturday 04 November 2006 11:03, Dustan wrote: > > Back in this post, I attempted to make a > > label look

Re: Awesome Python Information

2006-11-05 Thread jim-on-linux
Thanks for the heads up. I spend enough time with the email without having to chase gosts. jim-on-linux http://www.inqvista.com On Sunday 05 November 2006 16:39, Paul McGuire wrote: > "Brandon" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >grou

Re: how do I pass values between classes?

2006-11-06 Thread jim-on-linux
= Kvariable() x.setVariable("James_01") y.setVariable("Kath_01") x.showVariable() y.showVariable() x.setVariable('3.14159') y.setVariable("python.org") x.showVariable() y.showVariable() jim-on-linux http://www.inqvista.com On Monday

Re: Simple Tkinter problem

2006-11-07 Thread jim-on-linux
Greg, Run the following code to see how pack_forget() or grid_forget() works, it makes previous widgets disappear but not go away. If you call grid() or pack() again after using grid_forget() the widget returns. root = Tk() class Ktest: def __init__(self): self.Ftest1() d

Re: Simple Tkinter problem

2006-11-07 Thread jim-on-linux
On Tuesday 07 November 2006 10:38, jim-on-linux wrote: Greg, Run the following code to see how pack_forget() or grid_forget() works, it makes previous widgets disappear but not go away. If you call grid() or pack() again after using grid_forget() the widget returns. root = Tk() class

Re: Python Error:IndentationError: expected an indented block

2006-11-08 Thread jim-on-linux
try this def DoCsubnet1 (action, subject, target, args): pass jim-on-linux http://www.inqvista.com On Wednesday 08 November 2006 10:47, Antonios Katsikadamos wrote: > hi all. I try to run an old python code and i > get the following message >

Re: Python deployment options

2006-11-09 Thread jim-on-linux
Rooy, If you are still having problems with py2exe, I suggest you start with the simplest program you can build and include everything in one file. Make that work like the simple examples in the py2exe samples. jim-on-linux http://www.inqvista.com On Wednesday 08 November 2006 22:04

Re: Tkinter check box behaviour - Windows / Linux discrepancy

2006-11-09 Thread jim-on-linux
def chkTest_click0(self,event): self.chkTest_click() def chkTest_click(self): # read check box state and display appropriate text if self.intTest.get()==0: self.lblTest.config(text='Check box cleared') else: self.lblTest.config

Re: Press button to load data

2006-11-15 Thread jim-on-linux
to a file. Also, when using the open() function, close it after you get the data you need. otherwise you may experience unexpected problems. client = open('client', 'r') client.read() (readline()) (readlines()) client.close() jim-on-linux http//:www.inqvista.com On We

Re: Press button to load data

2006-11-16 Thread jim-on-linux
Without being able to run the code my question is where is the id in the lambda defined? On Thursday 16 November 2006 22:31, jim wrote: > Thanks for your help, but now I have a another > problem so here is my code again > when I run this it prints id> > > from Tkinter

Re: Press button to load data

2006-11-17 Thread jim-on-linux
On Friday 17 November 2006 02:58, you wrote: > On Fri, 17 Nov 2006 00:25:39 -0500, > jim-on-linux <[EMAIL PROTECTED]> > > declaimed the following in comp.lang.python: > > Without being able to run the code my > > question is where is the id in the lambda > >

Re: Caution newbie question: python window to stay open ?

2006-11-22 Thread jim-on-linux
Michael, put this at the top of your code. After the window closes read the testLog.out file. It may give you a clue as to what is happening. sys.stdout = open('testLog.out', 'w') jim-on-linux http://www.inqvista.com On Tuesday 21 November 2006 22:20, mkengel wrot

Re: Access to variable from external imported module

2006-11-23 Thread jim-on-linux
searchterm = searchterm #<<<<      print Kdo.searchterm #used outside the class Kdomore()     class Kdomore(Kdo): def __init__(self) : self.Fdomore() def Fdomore(self): searchterm = Kdo.searchterm # <<<< print searchterm ji

Re: Access to variable from external imported module

2006-11-24 Thread jim-on-linux
On Friday 24 November 2006 03:30, John Machin wrote: > jim-on-linux wrote: > > GinTon, > > > > I think this is what you want. > > > > > > class Kdoi: > > Is that a typo? No, it's a style. life seems to be easier to me if one is cons

Re: Access to variable from external imported module

2006-11-24 Thread jim-on-linux
On Friday 24 November 2006 13:01, jim-on-linux wrote: > On Friday 24 November 2006 03:30, John Machin > > wrote: > > jim-on-linux wrote: > > > GinTon, > > > > > > I think this is what you want. > > > > > > > > > class Kdoi:

Re: Access to variable from external imported module

2006-11-24 Thread jim-on-linux
On Friday 24 November 2006 13:20, jim-on-linux wrote: > On Friday 24 November 2006 13:01, jim-on-linux > > wrote: > > On Friday 24 November 2006 03:30, John Machin > > > > wrote: > > > jim-on-linux wrote: > > > > GinTon, > > > > > >

Re: Access to variable from external imported module

2006-11-24 Thread jim-on-linux
On Friday 24 November 2006 13:41, John Machin wrote: > jim-on-linux wrote: > > On Friday 24 November 2006 03:30, John Machin > > > > wrote: > > > jim-on-linux wrote: > > > > GinTon, > > > > > > > > I think this is what you wa

Re: Access to variable from external imported module

2006-11-24 Thread jim-on-linux
fill out a deposit ticket. I think Bill Gates recognize early that the money is in the marketing of the product, not the programming of it. How else can you explain the success of Windows, like it or not? jim-on-linux http://www.inqvista.com On Friday 24 November 2006 17:18, Dennis Lee Bieb

Re: Several entries on Tile and TableList at the Tkinter wiki

2006-11-27 Thread jim-on-linux
s Python. If we couldn't build programs for Windows, where would a python programmes's money come from? Thanks again, jim-on-linux http://www.inqvista.com On Sunday 26 November 2006 15:50, Kevin Walzer wrote: > I'm not sure how often members of this list &

Re: odict the Ordered Diction 0.2.2

2006-11-29 Thread jim-on-linux
Thanks for the post, Its become a part time job keeping up with updates. jim-on-linux http://www.inqvista.com On Wednesday 29 November 2006 09:41, Fuzzyman wrote: > After a break of almost a year there has been > an update to `odict the Ordered Dictionary > <http://www.void

Re: shtoom making PC2Phone calls

2006-11-30 Thread jim-on-linux
;[EMAIL PROTECTED]) > >Thanks,I will really > appreciate that Try, http://pyserial.sourceforge.net/ Many examples. I've used some of the examples to connect pc to pc. And with phone attached, you can to talk with someone on the other end. Search using serial port. j

Re: shtoom making PC2Phone calls

2006-11-30 Thread jim-on-linux
Forgot to include, Check out pyserial-2-2 at sourceforge.net/ by Chris Liechti On Thursday 30 November 2006 21:07, jim-on-linux wrote: > On Thursday 30 November 2006 12:35, Croteam wrote: > > Hello, > > > > Can somebody give me shtoom examples or > > source cod

Re: Python, PostgreSQL, What next?

2006-12-02 Thread jim-on-linux
://gadfly.sourceforge.net/ jim-on-linux http://www.inqvista.com On Saturday 02 December 2006 11:33, Thomas Bartkus wrote: > On Fri, 01 Dec 2006 23:04:37 -0800, vbgunz wrote: > > Hello all, > > > > I've studied Python and studied PostgreSQL. > > What is the absolute nex

Re: writing serial port data to the gzip file

2006-12-18 Thread jim-on-linux
hen everything in the file is left untouched and the new data is appended to the end of the file. Your while loop is deleting everything in the file on each loop with the 'w' mode. try, vfile = open('vfile', 'a') rather than vfile = open('vfile', &#

Easiest way to print from XP/DOS.

2006-12-29 Thread jim-on-linux
way, which package is the simplest to use. Also, if the utility is registered in xp, will the same statement send the file to the printer as it does in win98. jim-on-linux -- http://mail.python.org/mailman/listinfo/python-list

Re: Easiest way to print from XP/DOS.

2006-12-29 Thread jim-on-linux
software is interacting? On Friday 29 December 2006 17:58, Larry Bates wrote: > jim-on-linux wrote: > > This is the situation I'm in. > > > > I've built a single file utility using > > py2exe. I zip the dist directory and send it > > to the client. > >

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread jim-on-linux
previous versions, or is there something abnormal going on. I'm trying to avoid setting up an xp machine for one client. jim-on-linux On Saturday 30 December 2006 03:05, Tim Roberts wrote: > jim-on-linux <[EMAIL PROTECTED]> wrote: > >Did you run from a file

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread jim-on-linux
stops the operation then I think I may have to install the program as opposed to unzipping and running the exe file. On Saturday 30 December 2006 01:33, Tom Plunker wrote: > jim-on-linux wrote: > > When the client runs the utility program the > > output file is built but

Re: where is python on linux?

2007-01-07 Thread jim-on-linux
on linux type: whereis python You should get a list of directories where all of python lives. jim-on-linux http:\\www.inqvista.com On Sunday 07 January 2007 04:05, Frank Potter wrote: > I installed fedora core 6 and it has python > installed. But the question is, where

Re: Tkinter - resize tkMessageBox

2007-06-04 Thread jim-on-linux
r better off using Toplevel and/or frame, you have more control over the window and its appearance. jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: shelve crashing under Win ME

2007-06-30 Thread jim-on-linux
having Win ME machine in my office) to run > shelve? (or more specifically run bsddb's > hashopen?) > > Or should I trash shelve entirely and rewrite > all my code to use a simpler, homemade database > scheme? > > Thanks for any advice! > > Warmly, > Joel > [EMAI

Re: shelve crashing under Win ME

2007-06-30 Thread jim-on-linux
On Saturday 30 June 2007 10:07, jim-on-linux wrote: > On Saturday 30 June 2007 04:52, > [EMAIL PROTECTED] > > wrote: > > Hi, > > > > I'm not a Win ME fan myself (I'm a Mac user), > > but I'm here in Thailand developing software > > for spe

PY shutil on win xp home version

2007-04-18 Thread jim-on-linux
n but I don't want to use the client as a testor. Or is there some other explaination for the problem. jim-on-linux -- http://mail.python.org/mailman/listinfo/python-list

Re: PY shutil on win xp home version

2007-04-19 Thread jim-on-linux
On Wednesday 18 April 2007 17:02, Tim Golden wrote: > jim-on-linux wrote: > > python help, > > > > A client is using win xp home. > > > > my program contains; > >shutil.copyfile(n, 'prn') > > > > This runs fine on win xp pro bu

Re: PY shutil on win xp home version

2007-04-20 Thread jim-on-linux
Thanks Tim for resopnding, I appreciate the help. I convinced the client to install Linux on 4 machines rather than upgrade from xp home to XP Pro, and more machines to come if the like it. jim-on-linux On Friday 20 April 2007 03:22, you wrote: > jim-on-linux wrote: > > On Wed

Re: Expanding tkinter widgets to fill the window

2007-04-20 Thread jim-on-linux
demonstrating > your question. > > http://homepage1.nifty.com/algafield/sscce.html > > A. try; sticky = NSEW without plus signs headFrame = Frame(win01, bg = 'light grey', bd=10) headFrame.grid(row = 0, column=0, sticky = NSEW) jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: What happened to [EMAIL PROTECTED]

2007-05-05 Thread jim-on-linux
request the website > change? > > Thanks, > > Carsten. I'm not sure but you can try; [EMAIL PROTECTED] or http://mail.python.org/ jim-on-lnux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Circular imports

2007-05-29 Thread jim-on-linux
the file. I agree, waite until python complains. You might try to remove all of the import statements then add then as they are requested by the program by a traceback error. jim-on-linux > Try moving each import > statement to the latest possible point in the > code, i.e. right before

Re: python unix install, sqlite3

2007-05-29 Thread jim-on-linux
port sqlite3 > I'm using python 2.5 on linux and it works fine Try; import sqlite3 in place of from sqlite3 import * jim-on-linux http://www.inqvista.com > Traceback (most recent call last): > File "", line 1, in > File > "/ptmp/Python-2.5.1/lib/python2.5/

Re: Error with Tkinter and tkMessageBox

2007-07-31 Thread jim-on-linux
loop() > > > > > > > > Mike > > You're right. But the problem I have is always > there. Tkinter doesn't work properly and I > don't understand why. Thanks! Try This: def reply(): showinfo('ciao','hello') jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

sqlite3 create table col width?

2007-08-04 Thread jim-on-linux
ng, I want to varry the column sizes. jim-on-linux -- http://mail.python.org/mailman/listinfo/python-list

Re: sqlite3 create table col width?

2007-08-04 Thread jim-on-linux
On Saturday 04 August 2007 14:05, Carsten Haese wrote: > On Sat, 2007-08-04 at 13:51 -0400, jim-on-linux wrote: > > PY help, > > > > Using sqlite3 v3.1.3 > > > > When I create a table collumn using; > > > > newcollum VARCHAR(35), > > > > I

Re: Tkinter pack difficulty

2007-09-12 Thread jim-on-linux
he static layout grid() will give me. > > Any thoughts or advice? Sorry I can't help you with pack, I don't use it anymore. I am able to do everything with grid that I can do with pack. Once I learned to use grid I liked it better than pack. Spend some time to learn grid you may like

Re: pop method question

2007-03-03 Thread jim-on-linux
"ordered" list data > >> structure. Dictionaries in Python have no > >> order but are sequences. Now, does anyone > >> know why the python core has this pop method > >> implemented for a dictionary type? aDict.pop(theKey) 'produ

Re: askstring Window to the top under Windows

2007-03-06 Thread jim-on-linux
st by the user - very > unconfortable By default tk will open a root window. so you will have to create something to put into the root window. I suggest a button to open the tkSimpleDialog box. go to; http://www.pythonware.com/library/tkinter/introduction/ jim-on-linux http://www.inqvista.com --

Re: askstring Window to the top under Windows

2007-03-07 Thread jim-on-linux
On Wednesday 07 March 2007 05:05, iwl wrote: > On 7 Mrz., 02:49, jim-on-linux <[EMAIL PROTECTED]> wrote: > > On Tuesday 06 March 2007 08:13, iwl wrote: > > > Hi, > > > > > > I tryed askstring to input some text in my > > > script, but some ug

Re: askstring Window to the top under Windows

2007-03-07 Thread jim-on-linux
On Wednesday 07 March 2007 05:02, Ingo Wolf wrote: > Original-Nachricht > Datum: Tue, 06 Mar 2007 20:49:42 -0500 > Von: jim-on-linux <[EMAIL PROTECTED]> > An: python-list@python.org > CC: "iwl" <[EMAIL PROTECTED]> > Betreff: Re: ask

Re: tkinter text editor

2007-03-08 Thread jim-on-linux
ge allowed ## to Text Wiget state = 'normal' ## default for Text Wiget jim-on-linux http:\\www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: writing dictionary to file

2007-03-08 Thread jim-on-linux
t; but i see an empty file opened,,, > > kavitha > > Simon Brunning <[EMAIL PROTECTED]> > wrote: > > On 3/8/07, kavitha thankaian wrote: > > can anyone help me??? > > I'm sure we can. How far have you got so far? try f=open("logfile.txt", "w") f.write('name') f.write('\n') f.write(('credit(') f:close() jim-on-linux http:\\www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

SQLite3 trapping OperationalError

2007-03-09 Thread jim-on-linux
he table debtor does not exist so I get "OperationalError" which I want to trap with try/except or some other way. However python 2.5, except OperationalError: responds with "OperationalError" is not defined. Ideas on how to determine if a table exists would be welcome.

Re: SQLite3 trapping OperationalError

2007-03-09 Thread jim-on-linux
On Friday 09 March 2007 13:10, Jerry Hill wrote: > On 3/9/07, jim-on-linux <[EMAIL PROTECTED]> wrote: > > However python 2.5, > > except OperationalError: > > responds with > > "OperationalError" is not defined. > > I believe that need

Re: Signed zeros: is this a bug?

2007-03-11 Thread jim-on-linux
re > branch cuts, and hence signed zeros, are > important, and it would be handy if the above > code could be relied upon to do the right > thing. > > Mark This works for some reason instead of x,y = -0.0, 0.0 clumpy but the results are right. x = -0.0 y= 0.0 x,y (-0.0, 0.0) jim-on-linux http:\\inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Signed zeros: is this a bug?

2007-03-11 Thread jim-on-linux
here's > some optimization that avoids creating two > separate float objects for a float literal > that appears twice, and that optimization > doesn't see the difference between 0. and -0. > > >>> x, y = 0., -0. > >>> id(x) == id(y) > > True &

Re: attaching Tkinter Listbox to python list object

2007-03-12 Thread jim-on-linux
ly this I can think of is create a > subclass of list that deletes and then refills > the Listbox every time that the list changes, > but this seems very in efficient. > > > Any ideas? > > Steve Look into the StringVar(), class for Tkinter. var = stringVar() sorry I ca

SQLite3, data not found

2007-03-16 Thread jim-on-linux
?,?)", record ) ; cursor.execute("select * from data "); print cursor.fetchall(); con.close() con = sqlite3.connect('myData') cursor = con.cursor() cursor.execute("select * from data"); print cursor.fetchall(); jim-on-linux -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite3, data not found

2007-03-16 Thread jim-on-linux
from John Clark use con.commit() Thanks John, this works jim-on-linux On Friday 16 March 2007 17:55, jim-on-linux wrote: > Python help, > > I just started working with SQLite3 and ran > into this problem. > > Below, the first select produces results but, > after cl

Re: SQLite3, data not found

2007-03-17 Thread jim-on-linux
On Friday 16 March 2007 18:23, Jerry Hill wrote: > On 3/16/07, jim-on-linux <[EMAIL PROTECTED]> wrote: > > Below, the first select produces results but, > > after closing then re-opening the database > > the select produces an empty list. Anyone > > know the re

Re: SQLite3, data not found

2007-03-17 Thread jim-on-linux
On Saturday 17 March 2007 13:51, John Nagle wrote: > jim-on-linux wrote: > > On Friday 16 March 2007 18:23, Jerry Hill wrote: > >>On 3/16/07, jim-on-linux > >> <[EMAIL PROTECTED]> > > > > wrote: > >>>Below, the first select prod

Re: mysterious unicode

2007-03-20 Thread jim-on-linux
;Q1', 'O') 4 [1, u' ', 4] > > where qno seems to be a vanilla Q1, but a tuple > using qno is (u'Q1', ...). > > Can somebody help me out? I have been getting the same thing using SQLite3 when extracting data fron an SQLite3 database.

Re: mysterious unicode

2007-03-20 Thread jim-on-linux
On Tuesday 20 March 2007 21:17, Carsten Haese wrote: > On Tue, 2007-03-20 at 20:26 -0400, jim-on-linux wrote: > > I have been getting the same thing using > > SQLite3 when extracting data fron an SQLite3 > > database. > > Many APIs that exchange data choose to exchang

Re: the second of nested buttons using textvariable remains void!

2007-03-21 Thread jim-on-linux
ext() def next(): second = Toplevel() s0=StringVar() s0.set("click_s0") blabel0 = Button(second, textvariable=s0, command = second.destroy, width = 10, height = 2) blabel0.pack() if __name__ == '__main__' : go() mainloop() jim-on-linux http://inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best way to upgrade python?

2007-03-22 Thread jim-on-linux
left the system with the original 2.4? since it worked just fine. Look in the instructions on how to build for local users and you 'll save yourself from encountering the unexpected. jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: gui toolkits: the real story? (Tkinter, PyGTK, etc.)

2007-10-02 Thread jim-on-linux
. Let me spend my time programming not trying to make existing programs compatible with the unknown. (Some change to who knows what.) On the other hand, questions like yours are exactly what keeps the pressure on the Tkinter people to upgrade. I think they got the message with the recent announcement of some long awaited changes. jim-on-linux http://inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Building Binary Packages

2007-10-10 Thread Jim B. Wilson
On Wed, 10 Oct 2007 14:35:35 +, kyosohma wrote: > I am trying to figure out how to build binaries for Python packages and > I've done it with MinGW. Apparently, you still can: http://tinyurl.com/yb4bps -- http://mail.python.org/mailman/listinfo/python-list

download win32file

2007-01-15 Thread jim-on-linux
/Downloads.html http://starship.python.net/crew/mhammond/downloads/win32all-148.exe Produce; The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. jim-on-linux -- http

The curious behavior of integer objects

2007-01-15 Thread Jim B. Wilson
Am I nuts? Or only profoundly confused? I expected the this little script to print "0": class foo(int): def __init__(self, value): self = value & 0xF print foo(0x10) Instead, it prints "16" (at least on python 2.4.4 (Linux) and 2.5 (Wine). Jim Wilson GNV, FL --

Re: download win32file

2007-01-15 Thread jim-on-linux
On Monday 15 January 2007 10:37, hg wrote: > jim-on-linux wrote: > > Where can I download win32file / win32ui? > > > > The links below are broken. Mark Hammond > > should be made aware of this. > > > > > > URL below has two links that send you no &

Re: download win32file

2007-01-15 Thread jim-on-linux
On Monday 15 January 2007 18:02, Bill Tydeman wrote: > > ?? Do I have to download pywin32 to get > > win32ui, or win32file, or win32api > > Yes Got it. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread jim-on-linux
em modules. os.execvep() ## or others like execl, execle os.spawnv(), os.spawnve(), os.popen() hope this give some direction. jim-on-linux On Tuesday 13 February 2007 03:44, Jussi Salmela wrote: > Grant Edwards kirjoitti: > > On 2007-02-12, Larry Bates <[EMAIL PROTECT

Re: Tkinter: how; newbie

2007-02-13 Thread jim-on-linux
On Tuesday 13 February 2007 18:02, Gigs_ wrote: > can someone explain me this code? > > from Tkinter import * > > root = Tk() > > def callback(event): > print "clicked at", event.x, event.y > > frame = Frame(root, width=100, height=100) > frame.bind("", callback) > frame.pack() > > root.mainlo

Re: can't find a way to display and print pdf through python.

2007-02-13 Thread jim-on-linux
For those who care, the file below should run on a unix/ linux style system. And "xpdf", amoung others, will run a pdf file. import os def Printpdf(): os.system( 'xpdf form.pdf' ) if __name__ == '__main__' : Printpdf() jim-on-linux > On Tue

window opens with os.system()

2007-02-18 Thread jim-on-linux
comes objectionable. Is there any way to supress the flashing window. xp no longer allows the 'ctty' command. jim-on-linux -- http://mail.python.org/mailman/listinfo/python-list

Re: window opens with os.system()

2007-02-18 Thread jim-on-linux
On Sunday 18 February 2007 17:27, Gabriel Genellina wrote: > En Sun, 18 Feb 2007 18:09:23 -0300, > jim-on-linux <[EMAIL PROTECTED]> > > escribió: > > I have a simple module that sends text files > > to a printer. Then, it moves the file to the > > '

Re: Custom Tkinter scrollbar

2007-11-15 Thread jim-on-linux
Reilly written by Mark Lutz, Programming Python, look up programming scrollbars. jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

Re: It works! Was: Installing Python 3000

2007-11-27 Thread jim-on-linux
;python" > 11. print("Hello world!") > 12. Be happy! > > André, hoping this report might help some other newbie. Bug fix excluded, After unpacking the compressed version of Python, look for a file named "README". Open "README" and look for Installing. Make install and Make altinstall is explained. I don't like to read instructions but in the long run, it saves time. jim-on-linux http://www.inqvista.com -- http://mail.python.org/mailman/listinfo/python-list

<    2   3   4   5   6   7   8   >