Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MADE BY ALUF
- ##############
- MainLayout:
- <MainLayout>:
- TabBar:
- <TabBar>:
- size_hint: 1, 1
- do_default_tab: False
- TabbedPanelItem:
- text: 'Main'
- FirstTabFirstGrid:
- TabbedPanelItem:
- text: 'Chat'
- SecondTabFirstGrid:
- TabbedPanelItem:
- text: 'Options'
- GridLayout:
- rows: 2
- cols: 2
- Label:
- text: 'This button toggles whether\n\"friend xyz is online/offline now\"\nis shown in the chat window'
- FriendsButton:
- Label:
- text: 'This button ends the application'
- Button:
- text: 'Close this app'
- on_press: root.close_app()
- <FirstTabFirstGrid>:
- cols: 2
- FirstTabSecondGrid:
- Friendslist:
- <FirstTabSecondGrid>:
- rows: 2
- FirstInfoLabel:
- size_hint: 1, 0.2
- text: 'You are online on the account '+root.username
- SecondInfoLabel:
- text: 'This is the main tab. On the right you can see\nthe friendslist.\nClick on the Chat tab to chat.\nImportant: Send a blank message once after\nstarting this app.\nYou can exit the app in the Options tab.\nNote: This app has flaws (because I suck as a\nprogrammer). I think of this as a way to stay on-\nline while I\'m not at home temporarily, but it\nisn\'t a replacement for the normal chat.'
- <Friendslist>:
- size_hint: 0.4, 0.4
- item_strings: root.friends
- <FriendsButton>:
- text: 'Showing when friends go on or off'
- on_press: root.toggle_friends()
- <SecondTabFirstGrid>:
- recipientInput: recipientID
- messageInput: messageID
- rows: 3
- SecondTabSecondGrid:
- size_hint: 1, 0.3
- rows: 2
- cols: 2
- RecipientLabel:
- text: 'Recipient'
- RecipientInput:
- id: recipientID
- MessageLabel:
- text: 'Message'
- MessageInput:
- id: messageID
- SendButton:
- size_hint: 1, 0.2
- text: 'Send'
- on_press: for child in root.children[:]: root.send_message(child)
- ScrollView:
- ChatWindow:
- size_hint_y: None
- text: root.messageListString
- size: self.texture_size
- text_size: root.width, None
Advertisement
Add Comment
Please, Sign In to add comment