Created
July 10, 2014 09:07
-
-
Save RaminNietzsche/acf10f56e6c5964442f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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