Re: [Tutor] Python 2.5.4 - error in rounding

2010-05-21 Thread Neven Goršić
Thanks for the assistance and the article. Neven -- On Fri, May 21, 2010 at 5:35 PM, Lie Ryan wrote: > On 05/22/10 01:30, Neven Goršić wrote: > > Thanks! > > It's pity that Python has such unreliable functions so you never know in > > advanced

Re: [Tutor] Python 2.5.4 - error in rounding

2010-05-21 Thread Neven Goršić
Thanks! It's pity that Python has such unreliable functions so you never know in advanced when you will hit new one ... --- On Fri, May 21, 2010 at 2:14 PM, Lie Ryan wrote: > On 05/21/10 20:17, Neven Goršić wrote: > > Hi! > > > > I run into Py

[Tutor] Python 2.5.4 - error in rounding

2010-05-21 Thread Neven Goršić
Hi! I run into Python error in rounding and not know how to predict when it will occur in order to prevent wrong result. What can I do to assure accurate result? >>> "%.2f" % 0.445 '0.45' correct >>> "%.2f" % 0.455 '0.46' correct

[Tutor] Raw string

2010-04-18 Thread Neven Goršić
Hi! When I get file path from DirDialog, I get in a (path) variable. Sometimes that string (path) contains special escape sequences, such as \x, \r and so on. 'C:\Python25\Programs\rating' When I try to open that file (whose name contains escape sequences) it doesn't work. I know t

Re: [Tutor] Menu data from file

2010-04-05 Thread Neven Goršić
quot;announce" my module to the Python or System? That is all. Neven On Mon, Apr 5, 2010 at 4:03 PM, Lie Ryan wrote: > On 04/05/10 17:39, Neven Goršić wrote: > > Thank you for mentioning the possible options. > > I already use option where I

Re: [Tutor] Menu data from file

2010-04-05 Thread Neven Goršić
Thank you for mentioning the possible options. I already use option where I import .py module, but I run into troubles when making executable with py2exe. I suppose that XML approach is the most general method. Can you recommend a good introduction text (not for experts :-)) and give more details

[Tutor] Menu data from file

2010-04-04 Thread Neven Goršić
Hi! I would like to import menu data from external txt file, but not as import menudata.py, because then py2exe makes problems ... I would like to preserve list structure like: (("File", ("&New\tCtrl+N", "Create new blank script", self.onNew), ("&Open\tCtrl+O", "Opens call scrip

[Tutor] Is wxPython (development) dead?

2010-01-27 Thread Neven Goršić
Since May of 2009 there has not been any update and now web page is not available any more ... ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Making exe Python file - standalone executable file

2009-03-17 Thread Neven Goršić
Hi! Py2exe i standard way (up to my knowledge) of making standalone executable Python file in order to distribute your program to others who don't have Python installed (too bad that it is not part of standard Python distribution). I have no experience with wxPython and PyQT. Do they have their ow

Re: [Tutor] wxPython vs PyQt

2009-03-16 Thread Neven Goršić
, Mar 10, 2009 at 2:27 PM, andré palma wrote: > Neven Goršić wrote: >> >> Thank you all. It was not easy to decide what to learn/use, so I "Google" >> some more. >> >> I have found that PyQT is more stable, faster, more consistent and more >> expensi

Re: [Tutor] wxPython vs PyQt

2009-03-10 Thread Neven Goršić
Thank you all. It was not easy to decide what to learn/use, so I "Google" some more. I have found that PyQT is more stable, faster, more consistent and more expensive :). 400 € is too much for playing around with some GUI, but GPL licence resolves that issue. The cons are C++ oriented documentatio

[Tutor] wxPython vs PyQt

2009-03-04 Thread Neven Goršić
Hi! I am about to begin to learn GUI programming with Python. What are pros and cons for PyQT and wxPython? I read that PyQT has PyQT Designer which makes GUI programming easier. Is it owned and supported by Nokia? What about wxPython? Boa Constructor is not developed any more ... Is there any pr

Re: [Tutor] Raw string

2008-07-21 Thread Neven Goršić
2008/7/21 Martin Walsh <[EMAIL PROTECTED]>: > Neven Goršić wrote: >> I read from one file plenty of parameters and among them one file name >> of other file. >> That file name is 'e:\mm tests\1. exp files\5.MOC-1012.exp' and I hold >> it in variable s

Re: [Tutor] Raw string

2008-07-21 Thread Neven Goršić
On Mon, Jul 21, 2008 at 9:44 AM, Monika Jisswel <[EMAIL PROTECTED]> wrote: > instead of s='e:\mm tests\1. exp files\5.MOC-1012.exp' > try to use : s = r'e:\mm tests\1. exp files\5.MOC-1012.exp'.replace( > '\\', '') > for me here is what it gives: > s = r'e:\mm tests\1. exp files\5.MOC-101

Re: [Tutor] Raw string

2008-07-20 Thread Neven Goršić
On Sun, Jul 20, 2008 at 5:48 PM, Steve Willoughby <[EMAIL PROTECTED]> wrote: > Neven Goršić wrote: >> >> Hi! >> >> In every manual and book I read only one way to make a raw string: >> r"e:\mm tests\1. exp files\5.MOC-1012.exp". >> I don&

[Tutor] Raw string

2008-07-20 Thread Neven Goršić
Hi! In every manual and book I read only one way to make a raw string: r"e:\mm tests\1. exp files\5.MOC-1012.exp". I don't know how to make a string raw string if it is already contained in a variable. s.raw() or something like that ... Thank you very much PS. It seems like a very basic questi

Re: [Tutor] CD ROM Drive

2008-07-16 Thread Neven Goršić
2008/7/16 Neven Goršić <[EMAIL PROTECTED]>: > On Wed, Jul 16, 2008 at 2:02 PM, Tim Golden <[EMAIL PROTECTED]> wrote: >> Neven Goršić wrote: >>> >>> Hi! >>> >>> I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives. >

Re: [Tutor] CD ROM Drive

2008-07-16 Thread Neven Goršić
On Wed, Jul 16, 2008 at 2:02 PM, Tim Golden <[EMAIL PROTECTED]> wrote: > Neven Goršić wrote: >> >> Hi! >> >> I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives. >> I have C:, D: and E: hard disks and F: DVD ROM. > &g

[Tutor] CD ROM Drive

2008-07-16 Thread Neven Goršić
Hi! I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives. I have C:, D: and E: hard disks and F: DVD ROM. When I try to use os.access method with writing checking I get True testing DVD ROM Drive with DVD media inside (which is not writable). 1. Why? DVD disk is not writable!