Exemple #1
0
 def __init__(self, parent=None):
     super(FlightsWidget, self).__init__(parent)
     # state vars
     self.uifile = 'ui/flights_widget.ui'
     # objects, sub-windows
     self.ui = None
     self._btn_newmsg = ButtonTextOverIcon(self)
     self._btn_settings = QPushButton(self)
     # world reference
     self.world = XNovaWorld_instance()
     # columns indexes
     self.COL_TIME = 0
     self.COL_MISSION = 1
     self.COL_FROM = 2
     self.COL_TO = 3
     self.COL_PLAYER = 4
     self.COL_SHIPS_RES = 5