projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
more changes from 2.8.4 added
[wxWidgets.git]
/
wxPython
/
tests
/
test_appleevents.py
1
import
sys
,
os
2
import
wx
3
4
class
MyApp
(
wx
.
App
):
5
def
OnInit
(
self
):
6
f
=
wx
.
Frame
(
None
,
title
=
"Hello World"
)
7
f
.
Show
()
8
return True
9
10
def
MacOpenFile
(
self
,
filename
):
11
# code to load filename goes here.
12
wx
.
MessageBox
(
13
"You requested to open this file:
\n\"
%s
\"
"
%
filename
)
14
15
app
=
MyApp
()
16
app
.
MainLoop
()
17