Hello there,
Just found this wonderful thing called Pythoncard, and currently
blundering my way through it, and I'm having a bit of a dilemma with a
couple of things in the following -
def on_DLButton_mouseClick(self, event):
self.statusWindow=model.childWindow(self, status.StatusBox)
returnedlist=cmreports.main()
if returnedlist == "noNew":
self.statusWindow.components.StaticText1.text="La"
elif...
elif....
So, when the button is clicked a wee message box pops up and is
updated by the elif tree.
What I'm finding is that when the button is clicked, it pops up the
statusWindow, but it's dark grey, as opposed to the default grey.
After the cmreports.main() function has run, the elif tree updates the
statusWindow fine.
I've tried initializing the child Window in on_initialize, and then
Window.Show()ing it after the button is clicked, but it does the same
thing.
I've noticed that the button remains depressed until the cmreports
function has ended, so I gather it's to do with that. (The function
takes awhile to run on a 56k connection.)
Is there any way to force the statusWindow to refresh and take focus?
Or can I make the button pop straight back up?
I am running Python 2.3, with PythonCard 1.2 (I think?) on an winXP system.
If this is more of a wxPython problem, I apologise.
Thanks for your time,
Liam Clarke
'There is only one basic human right, and that is to do as you damn well please.
And with it comes the only basic human duty, to take the consequences.
|