Ejemplo n.º 1
0
 def closeEvent(self, event):
     if (
         q.QMessageBox.question(
             self, qlang("confirmexit.title"), qlang("confirmexit.text"), q.QMessageBox.StandardButtons(81920), 65536
         )
         == 16384
     ):
         event.accept()
     else:
         event.ignore()
Ejemplo n.º 2
0
	def startround(self):
		path,options,marked = so.getpath(so.grid) #although I don't think I'll need any of them… yet.
		if not path:
			q.QMessageBox.about(self.widget,qlang('nopath.title'),qlang('nopath.text'))
			return
		ec = so.entrancecoords
		party = player.party(ec[0],ec[1])
		playerpixmap = q.QPixmap('rsc/img/player.gif')
		party.label = dgc.playerlabel(party,self.widget)
		party.label.move(ec[0]*20,ec[1]*20)
		party.label.setScaledContents(True)
		party.label.resize(20,20)
		party.label.setPixmap(playerpixmap)
		party.label.show()
		while party.active:
			party.act()
			self.app.processEvents()
Ejemplo n.º 3
0
 def updatetext(self):
     self.setTitle(qlang(self.title))
Ejemplo n.º 4
0
 def __init__(self, title, parent=None):
     super(groupbox, self).__init__(qlang(title), parent)
     self.title = title
     ato(self)
Ejemplo n.º 5
0
 def __init__(self, title, parent=None):
     super(button, self).__init__(qlang(title), parent)
     self.title = title
     ato(self)
Ejemplo n.º 6
0
 def __init__(self, title, obj, parent=None):
     super(lwitem, self).__init__(qlang(title), parent)
     self.obj = obj
     self.title = title
     ato(self)