fork download
  1. #import kivykivy.require('1.7.2')
  2. from kivy.app import App
  3. from kivy.uix.widget import Widget
  4. from kivy.uix.label import Label
  5. from kivy.uix.button import Button
  6. from kivy.core.window import Window
  7. from kivy.properties import NumericProperty
  8. from kivy.clock import Clock
  9. from kivy.graphics import Rectangle
  10. from random import
  11.  
  12. from kivy.config import Config
  13. #Config.set('graphics','resizable',0) #don't make the app re-sizeable
  14. #Graphics fix
  15. #this fixes drawing issues on some phones
  16. #Window.clearcolor = (0,0,0,1.)
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28. class Program(App):
  29. def build(self):
  30. yazi = Label(text = "Merhaba Dünya")
  31.  
  32. return yazi
  33.  
  34.  
  35. Program().run()
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 10
    from random import
                     ^
SyntaxError: invalid syntax

stdout
Standard output is empty