Changeset 187


Ignore:
Timestamp:
01/11/05 12:27:24 (20 years ago)
Author:
mar637
Message:

Bug fix: Handling destruction of window via self._is_dead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplot.py

    r120 r187  
    3636        """
    3737        self.window = Tk.Tk()
    38        
     38        self.is_dead = False
     39        def dest_callback():
     40            self.is_dead = True
     41            self.window.destroy()
     42       
     43        self.window.protocol("WM_DELETE_WINDOW", dest_callback)
    3944        self.frame1 = Tk.Frame(self.window, relief=Tk.RIDGE, borderwidth=4)
    4045        self.frame1.pack(fill=Tk.BOTH)
Note: See TracChangeset for help on using the changeset viewer.