Die Suche ergab 3 Treffer

von kac
Mittwoch 31. Oktober 2007, 18:16
Forum: Tkinter
Thema: inheritance from Tkinter == leaks. true?
Antworten: 4
Zugriffe: 2875

now.. please don't laugh at me I have my own sword in my stomach import gc from Tkinter import * gc.set_debug(gc.DEBUG_LEAK) class my_frame_leak( Frame ): def __init__( self, master=None): Frame.__init__(self, master ) self.but = Button( self, text="quit", command=quit ) self.but.grid() wh...
von kac
Mittwoch 31. Oktober 2007, 00:05
Forum: Tkinter
Thema: inheritance from Tkinter == leaks. true?
Antworten: 4
Zugriffe: 2875

ok its may be like that: #!/usr/bin/env python import gc from Tkinter import * class my_frame_leak( Frame ): def __init__( self, master=None): self.master = master Frame.__init__(self, master ) self.but = Button( self,text="destroy",command=self.master.destroy ) self.but.grid() class my_fr...
von kac
Dienstag 30. Oktober 2007, 23:27
Forum: Tkinter
Thema: inheritance from Tkinter == leaks. true?
Antworten: 4
Zugriffe: 2875

inheritance from Tkinter == leaks. true?

Hello everybody I've just started playing with Pyhon( circ. 1 month). And need Your help. With so nice and productive language, builded application with GUI based on Tkinter. Its almost done but... wanted to check resources usage and found huge memory leaks. Its about classes ingerted from Tkinter c...