Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from kivy.app import App
- from kivy.lang import Builder
- from kivy.factory import Factory
- from kivy.app import App
- from kivy.uix.widget import Widget
- from kivy.uix.button import Button
- from kivy.uix.label import Label
- from kivy.uix.gridlayout import GridLayout
- from kivy.uix.boxlayout import BoxLayout
- from kivy.uix.tabbedpanel import TabbedPanel
- Builder.load_string('''
- #:kivy 1.8.0
- <RootWidget>:
- cols: 1
- Label:
- text: "[b]Kivy wallet[/b]"
- markup: True
- font_size: 18
- BoxLayout:
- Label:
- text: "Wallet name: "
- size_hint_x: 0.3
- font_size: 16
- Label:
- text: root.walletname
- size_hint_x: 0.7
- color: 0,1,1
- font_size: 14
- BoxLayout:
- Label:
- text: "Wallet address: "
- size_hint_x: 0.3
- font_size: 16
- Label:
- text: root.address
- size_hint_x: 0.7
- color: 0,1,1
- font_size: 10
- BoxLayout:
- Label:
- text: "Balance: "
- size_hint_x: 0.3
- font_size: 16
- Label:
- text: root.balance
- size_hint_x: 0.7
- markup: True
- color: 0,1,1
- font_size: 10
- BoxLayout:
- Label:
- text: "Unlocked balance: "
- size_hint_x: 0.3
- font_size: 16
- Label:
- text: root.unlockedbalance
- size_hint_x: 0.7
- markup: True
- color: 0,1,1
- font_size: 10
- ''')
- class RootWidget(GridLayout):
- walletname, address = "uninitialized", "uninitialized"
- balance, unlockedbalance = "uninitialized", "uninitialized"
- pass
- class WalletApp(App):
- def build(self):
- return RootWidget()
- if __name__ == '__main__':
- WalletApp().run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement