]> git.saurik.com Git - wxWidgets.git/blob - wxPython/tests/testi.py
Corrected points to pixels calculation
[wxWidgets.git] / wxPython / tests / testi.py
1
2
3 from wxPython.wx import *
4
5 def t():
6 r1 = wxRect(0,0, 25, 500)
7 r2 = wxRect(10, 10, 50, 100)
8
9 r = wxIntersectRect(r1, r2)
10 print r
11
12 r = wxIntersectRect(r1, (50, 10, 50, 100))
13 print r
14
15
16
17
18
19 class MyApp(wxApp):
20 def OnInit(self):
21 t()
22 return false
23
24 app = MyApp(0)
25