示例#1
0
文件: button.py 项目: saebyn/nwgui
 def __init__(self, text, callback, background=(100, 100, 100),
                    padding=(10, 10), *args, **kwargs):
     kwargs['background'] = background
     kwargs['padding'] = padding
     Label.__init__(self, text, *args, **kwargs)
     BaseButton.__init__(self, callback)
示例#2
0
文件: tab.py 项目: saebyn/nwgui
 def __init__(self, tabbedPages, tabName, *args, **kwargs):
     Label.__init__(self, tabName, *args, **kwargs)
     self.tabName = tabName
     self._tabbedPages = tabbedPages