[Tutor] Tkinter / WxPython Question.

2008-10-28 Thread Olrik Lenstra
Dear Mailing list, a while ago a few of you helped me solve an issue I had with a GUI / scan program that I made. The problem was that when I tried to move the frame it would hang until the scan was finished. To solve this I had to add "wx.SafeYield(self, True)" to the scan and the GUI wouldn't ha

Re: [Tutor] Problems with Gauge Bar.

2008-08-23 Thread Olrik Lenstra
Thanks Bill. That does work! Thanks a lot! :) Regards, Olrik 2008/8/23 Bill Burns <[EMAIL PROTECTED]> > Olrik Lenstra wrote: > >> It works! :) >> My program is now as good as done, only one thing that bothers me a bit. >> When I click the scan button the GUI Free

Re: [Tutor] Problems with Gauge Bar.

2008-08-22 Thread Olrik Lenstra
I attached the whole program. I'm pretty sure I made a lot of beginners mistakes, if you see something drastically wrong feel free to point it out ;-) Regards, Olrik 2008/8/23 Alan Gauld <[EMAIL PROTECTED]> > > "Olrik Lenstra" <[EMAIL PROTECTED]> wrote > >

Re: [Tutor] Problems with Gauge Bar.

2008-08-22 Thread Olrik Lenstra
It works! :) My program is now as good as done, only one thing that bothers me a bit. When I click the scan button the GUI Freezes because it is handling the onScan function. Is there any way to prevent this? Regards, Olrik ___ Tutor maillist - Tutor@p

Re: [Tutor] Problems with Gauge Bar.

2008-08-21 Thread Olrik Lenstra
> > >def onScan(self, event): >> self.myfile = open('foo.txt') >> self.count = 0 >> self.setTimer(0.01, self.processLine) >> >> def processLine(self): >> line = self.myfile.readline() >> if line: >> processLine(line) >> > > This function needs to be def

Re: [Tutor] Problems with Gauge Bar.

2008-08-21 Thread Olrik Lenstra
Follow-up on this question. I tried something (Posted below) but it doesn't work. Here it is. < import wx import os, sys class MyFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(300, 250),

Re: [Tutor] Problems with Gauge Bar.

2008-08-11 Thread Olrik Lenstra
> Including the list - please use ReplyAll. > Sorry. Pressed the wrong button. > > > Its the file that you want to scan - assuming there is a file. >> It could be a list or anything else - I don't actually know from >> your code what onScan is supposed to do! :-) > > > > Well, My code is suppose

Re: [Tutor] Problems with Gauge Bar.

2008-08-11 Thread Olrik Lenstra
> Including the list - please use ReplyAll. > Sorry. Pressed the wrong button. > > > Its the file that you want to scan - assuming there is a file. >> It could be a list or anything else - I don't actually know from >> your code what onScan is supposed to do! :-) > > > > Well, My code is suppose

Re: [Tutor] Problems with Gauge Bar.

2008-08-11 Thread Olrik Lenstra
> Including the list - please use ReplyAll. > Sorry. Pressed the wrong button. > > > Its the file that you want to scan - assuming there is a file. >> It could be a list or anything else - I don't actually know from >> your code what onScan is supposed to do! :-) > > > > Well, My code is suppose

Re: [Tutor] Problems with Gauge Bar.

2008-08-10 Thread Olrik Lenstra
That bit of code doesn't make a lot of sense to me so far. I don't see how that could "X" out a public address. (I do appreciate the help!) Regards, Olrik ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Problems with Gauge Bar.

2008-08-10 Thread Olrik Lenstra
I'm probably asking for a lot here. But I don't think I understand this fully. This is the part I tried to get the Bar in. I actually got it in GUI wise. >> But I had no idea to let it run the moment I clicked "Scan" >> > > OK, Normally you have to update the bar values from inside a > loop on you

Re: [Tutor] Problems with Gauge Bar.

2008-08-10 Thread Olrik Lenstra
i] = lines[i].replace('7', 'x') lines[i] = lines[i].replace('8', 'x') lines[i] = lines[i].replace('9', 'x') lines[i] = lines[i].replace('0', 'x') >>> This bit of code is meant to X-away public IP address

[Tutor] Problems with Gauge Bar.

2008-08-09 Thread Olrik Lenstra
ting Olrik. ## The Tool that makes a Tech's life easier! ## ## All information can be found at: ## http://artellos.geekstogo.com/ ## ## TroubleShooting Olrik, Copyright 2008 Olrik Lenstra ## All Rights Reserved. ## ##-- #

[Tutor] Tutor support request.

2008-03-27 Thread Olrik Lenstra
Hi There: I am Olrik. 17 year old student that is practicing IT. I recently began learning Python and it's going quite fine. I'm following a tutorial at http://www.freenetpages.co.uk/hp/alan.gauld/ I just finished the branching tab to the left. And i'm about to start Modules & Functions. However,