943,752 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 426
  • Python RSS
May 26th, 2009
0

Hide/Show frames

Expand Post »
Hi All,

I have two frames.viz., frm1 and frm2.
On click of a button on frm1, I want frm2 to pop up and frm1 to hide. Presently I am using the following code:

self.Hide() <br />
self.frm2=frm2.clsFrame2(self)<br />
self.frm2.Show()

clsFrame2 is the class present in frm2.
The above code if written on the click event of the button present on frm1. Some how the above code is not working!... Can anyone suggest?...
Any help is much appreaciated.

Regards,
Dinil
Similar Threads
Reputation Points: 18
Solved Threads: 0
Posting Whiz in Training
dinilkarun is offline Offline
206 posts
since Feb 2008
May 26th, 2009
0

Re: Hide/Show frames

sorry.. I goofed up in wrapping the code.
its here:
self.Hide()
self.frm2=frm2.clsFrame2(self)
frm2.Show()
Reputation Points: 18
Solved Threads: 0
Posting Whiz in Training
dinilkarun is offline Offline
206 posts
since Feb 2008
May 27th, 2009
0

Re: Hide/Show frames

Quote ...
On click of a button on frm1, I want frm2 to pop up and frm1 to hide.
Use a normal function callback for the click on the button. The function will raise frm2 and/or lower frm1. How that is done depends on the toolkit you are using. Some sample code would help.
Reputation Points: 741
Solved Threads: 692
Nearly a Posting Maven
woooee is offline Offline
2,305 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: can anyone tell file access restrictions
Next Thread in Python Forum Timeline: Navigation Process





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC