13 lines
247 B
Python
13 lines
247 B
Python
|
import pygtk
|
||
|
pygtk.require('2.0')
|
||
|
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()
|