def __init__(self): QPushButton.__init__(self) self.about = about.About() self.setIcon(QtGui.QIcon(assets.path('about.png'))) self.setToolTip("About") self.clicked.connect(self.about.show)
def __init__(self, is_visible): QPushButton.__init__(self) self.setIcon(QtGui.QIcon(assets.path('close.png'))) self.setToolTip("Close") self.clicked.connect(self.close) if not is_visible: self.hide()
def __init__(self): QPushButton.__init__(self) self.stat_type: str = StatsType.ZONE self.setIcon(QtGui.QIcon(assets.path('reset.png'))) self.setToolTip("Reset") self.clicked.connect(self.reset)
def __init__(self, parent): QPushButton.__init__(self, parent) self.p_account_id = 0 self.Menu = QMenu(self) self.Menu.addAction(self.tr("Choose account"), self.ChooseAccount) self.Menu.addAction(self.tr("Any account"), self.ClearAccount) self.setMenu(self.Menu) self.dialog = AccountListDialog() self.setText(self.dialog.SelectedName)
def __init__(self, clipboard): QPushButton.__init__(self) self.clipboard = clipboard self.prefix = '<< INITIAL PREFIX >>' self.players: PlayerListItem = [] self.mode = StatsType.ZONE self.fame = 0.0 self.clicked.connect(self.copy) self.setIcon(QtGui.QIcon(assets.path('copy.png'))) self.setToolTip("Copy to clipboard")