Re: A newbie question about using tix

2019-05-01 Thread MRAB
On 2019-05-01 17:44, David Sumbler wrote: > > On Tue, 2019-04-30 at 20:46 +0100, MRAB wrote: > > On 2019-04-30 16:40, David Sumbler wrote: > > > Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 > > > > > > I am very new to tkinter.  The simple program I am writing requires > > > a > > > user file t

Re: A newbie question about using tix

2019-05-01 Thread David Sumbler
On Tue, 2019-04-30 at 20:46 +0100, MRAB wrote: > On 2019-04-30 16:40, David Sumbler wrote: > > Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 > > > > I am very new to tkinter. The simple program I am writing requires > > a > > user file to be selected before it does anything else, so I would >

Re: A newbie question about using tix

2019-04-30 Thread MRAB
On 2019-04-30 16:40, David Sumbler wrote: Running Ubuntu 18.04, Python 3.6.7, tkinter 8.6 I am very new to tkinter. The simple program I am writing requires a user file to be selected before it does anything else, so I would like a file selection dialog in the main window as soon as the program

Re: A newbie question

2013-02-12 Thread Alberto Salvati
Hi, Colin. Thanks for your answer. But C:\Python27\Scripts is in my path and my trouble is about INSTALL easy_isntall. Bye A. -- http://mail.python.org/mailman/listinfo/python-list

Re: A newbie question

2013-02-12 Thread Colin J. Williams
On 12/02/2013 10:06 AM, Alberto Salvati wrote: Hi, All. I'm a (old) delphi developer. I want to learn Python. I've python 2.7 and django. For learning purpose I want to use firebird. But, package (egg) to use firebird needs easy_install for setup. When i run: python ez_setup.py install pyth

Re: A newbie question about some code

2009-05-18 Thread Dave Angel
Jim Qiu wrote: Hi everyone. I am reading a python library code and found something i can not understand. Please help! class Envelope(object): def __init__(self,ta_info): self.ta_info = ta_info def writefilelist(self,ta_list,tofile): for filename in ta_list:

Re: A newbie question about some code

2009-05-18 Thread Jim Qiu
On Mon, May 18, 2009 at 5:30 PM, Rhodri James wrote: > On Mon, 18 May 2009 10:18:52 +0100, Jim Qiu > wrote: > > Please check the blue highlighted part, I don't understand how the object >> get the property? >> > > Colours and highlighting don't come across in Usenet postings. Could > you be a

Re: A newbie question about some code

2009-05-18 Thread Chris Rebert
On Mon, May 18, 2009 at 2:18 AM, Jim Qiu wrote: > Hi everyone. > I am reading a python library code and found something i can not understand. > Please help! > class Envelope(object): >     def __init__(self,ta_info): >         self.ta_info = ta_info > >     def writefilelist(self,ta_list,tofile):

Re: A newbie question about some code

2009-05-18 Thread Rhodri James
On Mon, 18 May 2009 10:18:52 +0100, Jim Qiu wrote: Please check the blue highlighted part, I don't understand how the object get the property? Colours and highlighting don't come across in Usenet postings. Could you be a bit more specific. Which object, and what property? -- Rhodri Jame

Re: a newbie question

2009-04-12 Thread larryzhang
On Apr 12, 11:01 pm, Peter Otten <__pete...@web.de> wrote: > zhangle2...@gmail.com wrote: > > I am just learning Python and get a problem when trying this example: > > > from urllib import urlopen > > doc=urlopen("http://www.python.org";).read() > > print(doc) > > > when i run this, i was tould tha

Re: a newbie question

2009-04-12 Thread Peter Otten
zhangle2...@gmail.com wrote: > I am just learning Python and get a problem when trying this example: > > from urllib import urlopen > doc=urlopen("http://www.python.org";).read() > print(doc) > > when i run this, i was tould that 'cannot import name "urlopen" > > > What's wrong with this code?

Re: a newbie question

2009-04-12 Thread Eugene Perederey
use urllib2 2009/4/12 : > hi, > > I am just learning Python and get a problem when trying this example: > > from urllib import urlopen > doc=urlopen("http://www.python.org";).read() > print(doc) > > when i run this, i was tould that 'cannot import name "urlopen" > > > What's wrong with this code?

Re: A newbie question

2007-05-21 Thread wang frank
t;To: python-list@python.org >Subject: Re: A newbie question >Date: 21 May 2007 16:22:06 -0700 > >On May 21, 6:04 pm, "wang frank" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am trying to write a python class with a new data type such as: > &

Re: A newbie question

2007-05-21 Thread Dan Bishop
On May 21, 6:04 pm, "wang frank" <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to write a python class with a new data type such as: > class Cc14: >def __init__(self, realpart, imagpart): > self.r=realart > self.i=imagpart > >def __add__(self,x):

Re: A newbie question

2007-05-21 Thread Matimus
How about this: [code] def __add__(self,x): return Cc14(self.r+x.r, self.i+x.i) [/code] However... Are you aware that Python has built in support for complex numbers already? >>> x = 4+5j >>> y = 4+5j >>> x+y (8+10j) >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: A newbie question about FileDialog in wxPython

2007-05-14 Thread kyosohma
On May 11, 1:24 pm, "OhKyu Yoon" <[EMAIL PROTECTED]> wrote: > Hi! > I am opening files using the wx.FileDialog in wxPython. > I want to modify the FileDialog such that some information about a > highlighted file is displayed before I decide to open the file. > This is what I tried: > > class Modifi

Re: a newbie question about debug

2005-05-31 Thread flyaflya
flyaflya wrote: > I use pdb.set_trace() to debug code.the Debugger Commands "enable" and > "disable" need argumet -- "breakpoint number",but I can't find any > information about it,so how to can i get the breakpoint number? I think > "disable","enable" are very useful commands... I know why I c

Re: a newbie question

2004-12-11 Thread chris
Thank you. That's exactly what I needed. -- http://mail.python.org/mailman/listinfo/python-list

Re: a newbie question

2004-12-09 Thread Nick Coghlan
Peter Hansen wrote: If that's not what you wanted, try specifying what you mean by "preinstalled python libraries". I can think of at least two things that this phrase might refer to... For the "where's the standard library" interpretation, the following works on any platform: python -c "import

Re: a newbie question

2004-12-08 Thread Peter Hansen
chris wrote: In what directory are the preinstalled python libraries located on a Linux RH9 machine? Run python and at the prompt type "import sys" and then "sys.path". This should show you where all kinds of things are installed... If that's not what you wanted, try specifying what you mean by "p

Re: a newbie question

2004-12-08 Thread Jonel Rienton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] jonel]$ ls /usr/lib/python2.2/ - -- I not know English well, but I know 7 computer languages. anonymous On Dec 8, 2004, at 4:38 PM, chris wrote: > In what directo