[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/bindings/python event_bug.py,NONE,1.1.2.1
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/bindings/python event_bug.py,NONE,1.1.2.1 |
Date: |
Thu, 17 Apr 2003 13:07:35 -0400 |
Update of /cvsroot/paragui/paragui/bindings/python
In directory subversions:/tmp/cvs-serv17340
Added Files:
Tag: devel-1-0
event_bug.py
Log Message:
added "event_bug" python sample app.
--- NEW FILE ---
import sys
from paragui import *
class MyDialog(PG_Window, PG_EventObject):
def __init__(self):
PG_Window.__init__(self, None, PG_Rect(0, 0, 200, 200), "Test", 1)
self.e = PG_LineEdit(self, PG_Rect(10, 40, 150, 20))
self.ok = PG_Button(self, 0, PG_Rect(10, 100, 180, 20))
self.ok.set_pymethod(MSG_BUTTONCLICK, self.okClicked)
def okClicked(self, *args):
print "okClicked:", self
self.QuitModal()
app = PG_Application()
app.SetEmergencyQuit(1)
if not app.LoadTheme("default", 1, "../dat"):
print "Unable to load theme!"
sys.exit(-1)
app.SetFontSize(14)
if not app.InitScreen(300, 300, 16, 0):
print "Couldn't initialize X Windowing System"
sys.exit(1)
md = MyDialog()
md.Show()
md.RunModal()
md.Hide()
app.Run()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/bindings/python event_bug.py,NONE,1.1.2.1,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/data default.theme,1.1.1.1,1.1.1.1.6.1 qnx.theme,1.1.1.1,1.1.1.1.6.1 simple.theme,1.1.1.1,1.1.1.1.6.1
- Next by Date:
[paragui-cvs] CVS: paragui/src/themes themeloader.cpp,1.3.6.4,1.3.6.5
- Previous by thread:
[paragui-cvs] CVS: paragui/data default.theme,1.1.1.1,1.1.1.1.6.1 qnx.theme,1.1.1.1,1.1.1.1.6.1 simple.theme,1.1.1.1,1.1.1.1.6.1
- Next by thread:
[paragui-cvs] CVS: paragui/src/themes themeloader.cpp,1.3.6.4,1.3.6.5
- Index(es):