Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > Python

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-18-2009, 10:19 PM   PM User | #1
needhelpnow
New to the CF scene

 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
needhelpnow is an unknown quantity at this point
Overriding Destroy in Python

Hi,

I am trying to override the Destroy method in Python, but wanted to know how I can destroy the current panel after my custom code...

def Destroy(self):
# My Custom Code #
# How to Destroy this Panel? #

You cannot do self.Destroy() again because it get in to infinite loop.

Any help appreciated.
Thanks.
needhelpnow is offline   Reply With Quote
Old 06-19-2009, 03:29 PM   PM User | #2
needhelpnow
New to the CF scene

 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
needhelpnow is an unknown quantity at this point
Nevermind. I got it working.

I just had to do the following in the override method:
wx.Panel.Destroy(self)
needhelpnow is offline   Reply With Quote
Old 03-19-2010, 01:39 AM   PM User | #3
barabass
New to the CF scene

 
Join Date: Mar 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
barabass is an unknown quantity at this point
Thumbs up thanx

Thanx man, you have no idea the time i spent looking for a solution to your problem, thanx a lot!
I'll put this to let others find this: close panel, close frame, destroy frame, destroy panel, clear frame, clear panel
barabass is offline   Reply With Quote
Reply

Bookmarks

Tags
destroy, override, panel, python

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:37 AM.


Advertisement
Log in to turn off these ads.