main.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. #Copyright 2018 Sarah Scarlett
  2. #This file is part of Oui Wee.
  3. #Oui Wee is free software: you can redistribute it and/or modify
  4. #it under the terms of the GNU General Public License as published by
  5. #the Free Software Foundation, either version 3 of the License, or
  6. #(at your option) any later version.
  7. #Oui Wee is distributed in the hope that it will be useful,
  8. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. #GNU General Public License for more details.
  11. #You should have received a copy of the GNU General Public License
  12. #along with Oui Wee. If not, see <http://www.gnu.org/licenses/>.
  13. from kivy.app import App
  14. from kivy.uix.button import Button
  15. from kivy.core.audio import SoundLoader
  16. from kivy.uix.boxlayout import BoxLayout
  17. from kivy.uix.image import Image
  18. from kivy.core.window import Window
  19. import webbrowser
  20. __version__ = "2.2.0" #because it makes kivy happy
  21. class Oui_Wee(App):
  22. Window.clearcolor = (.77,.93,.94, 1)
  23. icon = 'tiles.gif'
  24. sherpie = Image(source = 'titlewee.gif')
  25. global sharpie
  26. sharpie = sherpie
  27. def build(self):
  28. sharpie
  29. self.stoppy=Button(text='Stop',font_size=22, color=(0.92, 0.30, 0.30,1),background_normal='',background_color =(1, 0.97, 0.76, 1))
  30. self.stoppy.bind(on_press=self.getMessagestoppy)
  31. self.thanks = Button(text='Thank you for using your software Freedoms :)', font_size=11, color=(0.02, 0.18, 0.58,1), background_color = (0,0,0,0))
  32. self.thanks.bind(on_press = self.kittenasacat)
  33. self.flush = Button(text='Flush',font_size=22, color=(0.02, 0.18, 0.58,1),background_normal='',background_color =(1, 0.97, 0.76, 1))
  34. self.flush.bind(on_press=self.getMessageFlush)
  35. self.piss = Button(text='Power Piss',font_size=22, color=(0.02, 0.18, 0.58,1),background_normal='', background_color =(1, 0.97, 0.76, 1))# 222 contractor protec/escort mon - thurs 20:00 -06:00
  36. self.piss.bind(on_press=self.getMessagepiss)
  37. self.tinkle = Button(text='Little Tinkle',font_size=22, color=(0.02, 0.18, 0.58,1),background_normal='',background_color =(1, 0.97, 0.76, 1))
  38. self.tinkle.bind(on_press=self.getMessagetinkle)
  39. layout = BoxLayout(orientation ='vertical',padding=(2,2,2,2), background_color = (.77,.93,.94), spacing = 30)
  40. layout.add_widget(sharpie)
  41. layout.add_widget(self.tinkle)
  42. layout.add_widget(self.piss)
  43. layout.add_widget(self.flush)
  44. layout.add_widget(self.stoppy)
  45. layout.add_widget(self.thanks)
  46. return layout
  47. def kittenasacat(self, *args):
  48. kc = gogogokittenasacat()
  49. kc.getMessage(self)
  50. def getMessageFlush(self, *args):
  51. global sf
  52. sf = gogogoflush()
  53. sf.getMessage(self)
  54. def getMessagepiss(self, *args):
  55. global sp
  56. sp = gogogopiss()
  57. sp.getMessage(self)
  58. def getMessagetinkle(self, *args):
  59. global st
  60. st = gogogotinkle()
  61. st.getMessage(self)
  62. def getMessagestoppy(self, *args):
  63. ss = gogogostoppy()
  64. ss.getMessage(self)
  65. def getMessagethanks(self, *args):
  66. th = gogogothanks()
  67. th.getMessage(self)
  68. class gogogokittenasacat:
  69. def getMessage(self, source):
  70. global mostanything
  71. mostanything = webbrowser.open('http://www.gnu.org/philosophy/philosophy.html')
  72. class gogogopiss:
  73. def getMessage(self, source):
  74. caterpillar = source.piss
  75. global caterpillar
  76. caterpillar = SoundLoader.load('PowerPiss.ogg')
  77. boysdontcry = caterpillar.play()
  78. class gogogoflush:
  79. def getMessage(self, source):
  80. caterpillar = source.flush
  81. global caterpillar
  82. caterpillar = SoundLoader.load('flush.ogg')
  83. picturesofyou = caterpillar.play()
  84. class gogogotinkle:
  85. def getMessage(self, source):
  86. caterpillar = source.tinkle
  87. global caterpillar
  88. caterpillar = SoundLoader.load('tinkle.ogg')
  89. fridayiminlove = caterpillar.play()
  90. class gogogostoppy:
  91. def getMessage(self, source):
  92. if caterpillar.state == 'play':
  93. caterpillar.stop()
  94. if __name__ == "__main__":
  95. Oui_Wee().run()