Hi!
From: Varsha Purohit [mailto:varsha.purohit@gmail.com]
Sent: Tuesday, February 12, 2008 8:32 PM
To: wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] How to make a button active and inactiveHello All,
I wanted to know in a wxpython program how can i make
button inactive for some part of program execution and then i
can make it active later. Also, in that button handler how
can i call a new frame class which is in another module. For
eg. i have main.py where i am haivng a button handler and i
have temporary.py where i ahve a class called menu. How can i
call this in main.py...--
Varsha Purohit,
Graduate Student
For button enabling/disabling, do something like this:
btn.Disable()
btn.Enable()
I'm not sure what you mean by calling another frame...especially when that
frame is called "menu". Normally when I want to create a dialog or options
screen and it's complicated, I put it in a separate file. So I would do
something like this:
import myFrame
frm = myFrame.className()
frm.Show()
Hopefully this puts you on the right path. If not, someone with bigger
brains than I will come along shortly...
Mike
···
-----Original Message-----