Hide/Show frames

Reply

Join Date: Feb 2008
Posts: 198
Reputation: dinilkarun is an unknown quantity at this point 
Solved Threads: 0
dinilkarun dinilkarun is offline Offline
Junior Poster

Hide/Show frames

 
0
  #1
May 26th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 198
Reputation: dinilkarun is an unknown quantity at this point 
Solved Threads: 0
dinilkarun dinilkarun is offline Offline
Junior Poster

Re: Hide/Show frames

 
0
  #2
May 26th, 2009
sorry.. I goofed up in wrapping the code.
its here:
self.Hide()
self.frm2=frm2.clsFrame2(self)
frm2.Show()
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 1,008
Reputation: woooee is a jewel in the rough woooee is a jewel in the rough woooee is a jewel in the rough 
Solved Threads: 285
woooee woooee is offline Offline
Veteran Poster

Re: Hide/Show frames

 
0
  #3
May 27th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC