git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@36 1daee41c-8060-4895-b1f0-2197c00d777a
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()
|