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()
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()
def updatetext(self): self.setTitle(qlang(self.title))
def __init__(self, title, parent=None): super(groupbox, self).__init__(qlang(title), parent) self.title = title ato(self)
def __init__(self, title, parent=None): super(button, self).__init__(qlang(title), parent) self.title = title ato(self)
def __init__(self, title, obj, parent=None): super(lwitem, self).__init__(qlang(title), parent) self.obj = obj self.title = title ato(self)