Skip to content

Instantly share code, notes, and snippets.

@RaminNietzsche
Created July 10, 2014 09:07
Show Gist options
  • Save RaminNietzsche/acf10f56e6c5964442f0 to your computer and use it in GitHub Desktop.
Save RaminNietzsche/acf10f56e6c5964442f0 to your computer and use it in GitHub Desktop.
from kivy.app import App
from kivy.uix.widget import Widget
from subprocess import call, check_output
from kivy.uix.label import Label
class field(Widget):
def __init__(self, **kwargs):
super(field,self).__init__(**kwargs)
self.gc()
def gc(self, **kwargs):
label=Label(text=str(check_output('python ../PrintTest.py')))
self.add_widget(label)
class mainC(App):
def build(self):
return field()
if __name__=='__main__':
mainC().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment