Example #1
0
 def create_actions(self):
     self.send_act = QAction(
         icon("go-next"),
         self.tr("Send"),
         self,
         toolTip=self.tr("Send bitcoins to another person"),
         triggered=self.new_send_dialog,
     )
     self.newaddy_act = QAction(
         icon("document-new"),
         self.tr("New address"),
         self,
         toolTip=self.tr("Create new address for accepting bitcoins"),
         triggered=self.new_address,
     )
     self.copyaddy_act = QAction(
         icon("copy-bitcoin-address", "klipper", "tool_clipboard", "edit-copy", "icons/edit-copy.png"),
         self.tr("Copy address"),
         self,
         toolTip=self.tr("Copy address to clipboard"),
         triggered=self.copy_address,
     )
     self.settings_act = QAction(
         icon("configure", "icons/preferences-system.png"),
         self.tr("Settings"),
         self,
         toolTip=self.tr("Configure Spesmilo"),
         triggered=self.open_settings,
     )
Example #2
0
 def setup(self, options, args):
     icon._default = icon(options.icon, *icon._defaultSearch)
     self.bitcoin_icon = icon()
     self.caption = options.caption
     self.core = None