PyGUI should now work without installation

This commit is contained in:
Skyler
2012-01-05 20:06:00 -05:00
parent a1b07a33c1
commit b1c83def71
298 changed files with 24226 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from GUI import Window, TextView, TextModel, Font, application
from TestViews import TestView
app = application()
app.set_menus(app.std_menus())
win = Window(width = 300, height = 200)
text = TextModel()
text.set_text("Hello\nWorld!")
view = TextView(width = 300, height = 200, model = text)
view.set_font(Font("Helvetica", 14, []))
win.add(view)
view.become_target()
win.show()
app.run()