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
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
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
>
>
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
>
>
>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
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),
> 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
> 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
> 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
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
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
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
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.
##
##--
#
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,
14 matches
Mail list logo