def __init__(self, parent, name='BaseGameDataDialog'):
     BaseDialogWindow.__init__(self, parent, name=name)
     # we need a frame for the layout widget
     # the layout widget won't work with a window as parent
     self.frame = BaseGameDataFrame(self)
     # set frame as main widget
     self.setMainWidget(self.frame)
     self.resize(*self.myconfig.get_xy('gamedata_dialog', 'dialog_size'))
Exemplo n.º 2
0
 def __init__(self, parent, name='SettingsWidgetDialog'):
     BaseDialogWindow.__init__(self, parent, name=name)
     #self.frame = SettingsWidget(self)
     self.frame = SettingsTabWidget(self)
     self.setMainWidget(self.frame)
     self.frame.set_config(self.app.myconfig)
     # connect buttons
     self.connect(self, SIGNAL('okClicked()'), self.update_config)
     self.connect(self, SIGNAL('applyClicked()'), self.update_config)
Exemplo n.º 3
0
 def __init__(self, parent, name='ProfileSelectorDialog'):
     BaseDialogWindow.__init__(self, parent, name=name)
     self.dbox = self.app.make_new_dosbox_object()
     profiles = self.dbox.get_profile_list()
     self.listView = KListView(self)
     self.listView.addColumn('profile')
     self.setMainWidget(self.listView)
     for profile in profiles:
         item = KListViewItem(self.listView, profile)
         item.profile = profile
 def __init__(self, parent, name='AbandoniaInfoWindow'):
     BaseDialogWindow.__init__(self, parent, name=name)
     self.handler = parent.handler
     margin = 5
     space = 7
     self.box = self.makeVBoxMainWidget()
     self.htmlpart = BaseAbandoniaPart(self.box)
     self.htmlpart.set_game_info(self.handler)
     self.setMainWidget(self.box)
     self.resize(400, 600)
 def __init__(self, parent, name='ImportGameDialog'):
     BaseDialogWindow.__init__(self, parent, name=name)
     self.frame = QFrame(self)
     margin = 5
     space = 7
     self.grid = QGridLayout(self.frame, 2, 1, margin, space)
     self.url_lbl = QLabel('URL', self.frame)
     self.url_entry = KLineEdit('', self.frame)
     self.grid.addWidget(self.url_lbl, 0, 0)
     self.grid.addWidget(self.url_entry, 1, 0)
     self.setMainWidget(self.frame)
     self.connect(self, SIGNAL('okClicked()'), self.import_game)
Exemplo n.º 6
0
 def __init__(self, parent, name='ProfileDialogWindow'):
     BaseDialogWindow.__init__(self, parent, name=name)
     self.mainView = ProfileManagerWidget(self)
     
     self.setMainWidget(self.mainView)
 def __init__(self, parent, action, name='MultiGameProgressDialog'):
     BaseDialogWindow.__init__(self, parent, name=name)
     self.fhandler = self.app.make_new_fileshandler()
     self.action = action
     self.progress = MultiGameProgress(self, action)
     self.setMainWidget(self.progress)