From ec96574fbd4e8a7f64c7cc668c24436dd7aac039 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 30 Nov 1999 20:24:00 +0000 Subject: [PATCH] a test file git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/tests/testi.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 utils/wxPython/tests/testi.py diff --git a/utils/wxPython/tests/testi.py b/utils/wxPython/tests/testi.py new file mode 100644 index 0000000000..5fb4fced9c --- /dev/null +++ b/utils/wxPython/tests/testi.py @@ -0,0 +1,25 @@ + + +from wxPython.wx import * + +def t(): + r1 = wxRect(0,0, 25, 500) + r2 = wxRect(10, 10, 50, 100) + + r = wxIntersectRect(r1, r2) + print r + + r = wxIntersectRect(r1, (50, 10, 50, 100)) + print r + + + + + +class MyApp(wxApp): + def OnInit(self): + t() + return false + +app = MyApp(0) +