예제 #1
0
파일: components.py 프로젝트: ollawone/stdm
 def __init__(self, icon, text, parent, code):
     if icon is None:
         QAction.__init__(self, text, parent)
     else:
         QAction.__init__(self, icon, text, parent)
     STDMContent.__init__(self, code)
     self.Name = text + " " + QApplication.translate("STDMModule", "Module")
예제 #2
0
 def __init__(self, text, conntype, parent=None):
     self.type = conntype
     icon = ConnectionManager.getConnection(self.type).icon()
     QAction.__init__(self, icon, text, parent)
예제 #3
0
 def __init__(self, text, conntype, parent=None):
     self.type = conntype
     icon = ConnectionManager.getConnection(self.type).icon()
     QAction.__init__(self, icon, text, parent)