11 lines
213 B
Python
11 lines
213 B
Python
|
import gtk
|
||
|
|
||
|
|
||
|
class CheckButton(gtk.CheckButton):
|
||
|
def __init__(self,label,func,active):
|
||
|
gtk.CheckButton.__init__(self,label)
|
||
|
if active==True:
|
||
|
self.set_active(1)
|
||
|
self.connect("toggled",func)
|
||
|
self.show()
|