Compare commits
	
		
			2 Commits
		
	
	
		
			bfb56d487a
			...
			6fd160f2a1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6fd160f2a1 | |||
| 76e01c6f3a | 
							
								
								
									
										20
									
								
								__init__.py
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								__init__.py
									
									
									
									
									
								
							| @ -0,0 +1,20 @@ | |||||||
|  | from electrum.i18n import _ | ||||||
|  | import subprocess | ||||||
|  | from . import bal_resources | ||||||
|  | BUILD_NUMBER = 3  | ||||||
|  | REVISION_NUMBER = 2 | ||||||
|  | VERSION_NUMBER = 0 | ||||||
|  | def _version(): | ||||||
|  |     return f'{VERSION_NUMBER}.{REVISION_NUMBER}-{BUILD_NUMBER}' | ||||||
|  | 
 | ||||||
|  | version = _version() | ||||||
|  | author = "Bal Enterprise inc." | ||||||
|  | fullname = _('B.A.L.') | ||||||
|  | description = ''.join([ | ||||||
|  |     "<img src='",bal_resources.icon_path('bal16x16.png'),"'>", _("Bitcoin After Life"), '<br/>', | ||||||
|  |     _("For more information, visit"), | ||||||
|  |     " <a href=\"https://bitcoin-after.life/\">https://bitcoin-after.life/</a><br/>", | ||||||
|  |     "<p style='font-size:8pt;vertialAlign:bottom'>Version: ", _version(),"</p>" | ||||||
|  | ]) | ||||||
|  | #available_for = ['qt', 'cmdline', 'qml'] | ||||||
|  | available_for = ['qt'] | ||||||
| @ -2,7 +2,7 @@ | |||||||
|   "name": "BAL", |   "name": "BAL", | ||||||
|   "fullname": "Bitcoin After Life", |   "fullname": "Bitcoin After Life", | ||||||
|   "description": "Provides free and decentralized inheritance support", |   "description": "Provides free and decentralized inheritance support", | ||||||
|   "author":"Svātantrya", |   "author":"Svatantrya", | ||||||
|   "available_for": ["qt"], |   "available_for": ["qt"], | ||||||
|   "icon":"icons/bal32x32.png" |   "icon":"icons/bal32x32.png" | ||||||
| } | } | ||||||
|  | |||||||
							
								
								
									
										15
									
								
								qt.py
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								qt.py
									
									
									
									
									
								
							| @ -250,7 +250,6 @@ from electrum.gui.qt.util import ( | |||||||
|         export_meta_gui, |         export_meta_gui, | ||||||
|         MessageBoxMixin, |         MessageBoxMixin, | ||||||
|         Buttons, |         Buttons, | ||||||
|         read_QIcon,  |  | ||||||
|         export_meta_gui, |         export_meta_gui, | ||||||
|         MessageBoxMixin, |         MessageBoxMixin, | ||||||
|         char_width_in_lineedit,  |         char_width_in_lineedit,  | ||||||
| @ -380,7 +379,7 @@ class Plugin(BalPlugin,Logger): | |||||||
|     def create_status_bar(self, sb): |     def create_status_bar(self, sb): | ||||||
|         self.logger.info("HOOK create status bar") |         self.logger.info("HOOK create status bar") | ||||||
|         return |         return | ||||||
|         b = StatusBarButton(read_QIcon('bal32x32.png'), "Bal "+_("Bitcoin After Life"), |         b = StatusBarButton(read_bal_QIcon('bal32x32.png'), "Bal "+_("Bitcoin After Life"), | ||||||
|                             partial(self.setup_dialog, sb), sb.height()) |                             partial(self.setup_dialog, sb), sb.height()) | ||||||
|         sb.addPermanentWidget(b) |         sb.addPermanentWidget(b) | ||||||
| 
 | 
 | ||||||
| @ -531,8 +530,8 @@ class BalWindow(Logger): | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|         add_optional_tab(self.window.tabs, self.heirs_tab, read_QIcon("heir.png"), _("&Heirs")) |         add_optional_tab(self.window.tabs, self.heirs_tab, read_bal_QIcon("heir.png"), _("&Heirs")) | ||||||
|         add_optional_tab(self.window.tabs, self.will_tab, read_QIcon("will.png"), _("&Will")) |         add_optional_tab(self.window.tabs, self.will_tab, read_bal_QIcon("will.png"), _("&Will")) | ||||||
|         tools_menu.addSeparator() |         tools_menu.addSeparator() | ||||||
|         self.tools_menu.willexecutors_action = tools_menu.addAction(_("&Will-Executors"), self.show_willexecutor_dialog) |         self.tools_menu.willexecutors_action = tools_menu.addAction(_("&Will-Executors"), self.show_willexecutor_dialog) | ||||||
|         self.window.view_menu.addSeparator() |         self.window.view_menu.addSeparator() | ||||||
| @ -847,7 +846,7 @@ class BalWindow(Logger): | |||||||
|                 external_keypairs=external_keypairs, |                 external_keypairs=external_keypairs, | ||||||
|                 #payment_identifier=payment_identifier, |                 #payment_identifier=payment_identifier, | ||||||
|             ) |             ) | ||||||
|             d.setWindowIcon(read_QIcon("bal32x32.png")) |             d.setWindowIcon(read_bal_QIcon("bal32x32.png")) | ||||||
|         except SerializationError as e: |         except SerializationError as e: | ||||||
|             self.logger.error('unable to deserialize the transaction') |             self.logger.error('unable to deserialize the transaction') | ||||||
|             parent.show_critical(_("Electrum was unable to deserialize the transaction:") + "\n" + str(e)) |             parent.show_critical(_("Electrum was unable to deserialize the transaction:") + "\n" + str(e)) | ||||||
| @ -1439,7 +1438,7 @@ class BalDialog(WindowModalDialog): | |||||||
|     def __init__(self,parent,title=None, icon = 'bal32x32.png'): |     def __init__(self,parent,title=None, icon = 'bal32x32.png'): | ||||||
|         self.parent=parent |         self.parent=parent | ||||||
|         WindowModalDialog.__init__(self,self.parent,title) |         WindowModalDialog.__init__(self,self.parent,title) | ||||||
|         self.setWindowIcon(read_QIcon(icon)) |         self.setWindowIcon(read_bal_QIcon(icon)) | ||||||
| 
 | 
 | ||||||
| class BalWaitingDialog(BalDialog): | class BalWaitingDialog(BalDialog): | ||||||
|     updatemessage=pyqtSignal([str], arguments=['message']) |     updatemessage=pyqtSignal([str], arguments=['message']) | ||||||
| @ -2353,9 +2352,9 @@ class PreviewDialog(BalDialog,MessageBoxMixin): | |||||||
|     def closeEvent(self, event): |     def closeEvent(self, event): | ||||||
|         event.accept() |         event.accept() | ||||||
|      |      | ||||||
| def read_QIcon(icon_basename: str=DEFAULT_ICON) -> QIcon: | def read_bal_QIcon(icon_basename: str=DEFAULT_ICON) -> QIcon: | ||||||
|     return QIcon(icon_path(icon_basename)) |     return QIcon(icon_path(icon_basename)) | ||||||
| def read_QPixmap(icon_basename: str=DEFAULT_ICON) -> QPixmap: | def read_bal_QPixmap(icon_basename: str=DEFAULT_ICON) -> QPixmap: | ||||||
|     return QPixmap(icon_path(icon_basename)) |     return QPixmap(icon_path(icon_basename)) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user