Aluf

[NOT BY ME] Chatango PM Client for Android-ChatangoClient.kv

Jan 24th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. #MADE BY ALUF
  2. ##############
  3. MainLayout:
  4.  
  5. <MainLayout>:
  6. TabBar:
  7. <TabBar>:
  8. size_hint: 1, 1
  9. do_default_tab: False
  10. TabbedPanelItem:
  11. text: 'Main'
  12. FirstTabFirstGrid:
  13. TabbedPanelItem:
  14. text: 'Chat'
  15. SecondTabFirstGrid:
  16. TabbedPanelItem:
  17. text: 'Options'
  18. GridLayout:
  19. rows: 2
  20. cols: 2
  21. Label:
  22. text: 'This button toggles whether\n\"friend xyz is online/offline now\"\nis shown in the chat window'
  23. FriendsButton:
  24. Label:
  25. text: 'This button ends the application'
  26. Button:
  27. text: 'Close this app'
  28. on_press: root.close_app()
  29. <FirstTabFirstGrid>:
  30. cols: 2
  31. FirstTabSecondGrid:
  32. Friendslist:
  33. <FirstTabSecondGrid>:
  34. rows: 2
  35. FirstInfoLabel:
  36. size_hint: 1, 0.2
  37. text: 'You are online on the account '+root.username
  38. SecondInfoLabel:
  39. 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.'
  40. <Friendslist>:
  41. size_hint: 0.4, 0.4
  42. item_strings: root.friends
  43. <FriendsButton>:
  44. text: 'Showing when friends go on or off'
  45. on_press: root.toggle_friends()
  46. <SecondTabFirstGrid>:
  47. recipientInput: recipientID
  48. messageInput: messageID
  49. rows: 3
  50. SecondTabSecondGrid:
  51. size_hint: 1, 0.3
  52. rows: 2
  53. cols: 2
  54. RecipientLabel:
  55. text: 'Recipient'
  56. RecipientInput:
  57. id: recipientID
  58. MessageLabel:
  59. text: 'Message'
  60. MessageInput:
  61. id: messageID
  62. SendButton:
  63. size_hint: 1, 0.2
  64. text: 'Send'
  65. on_press: for child in root.children[:]: root.send_message(child)
  66. ScrollView:
  67. ChatWindow:
  68. size_hint_y: None
  69. text: root.messageListString
  70. size: self.texture_size
  71. text_size: root.width, None
Advertisement
Add Comment
Please, Sign In to add comment