projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Unicode compilation fix
[wxWidgets.git]
/
wxPython
/
samples
/
wxPIA_book
/
Chapter-09
/
dir_box.py
1
import
wx
2
3
if
__name__
==
"__main__"
:
4
app
=
wx
.
PySimpleApp
()
5
dialog
=
wx
.
DirDialog
(
None
,
"Choose a directory:"
,
6
style
=
wx
.
DD_DEFAULT_STYLE | wx
.
DD_NEW_DIR_BUTTON
)
7
if
dialog
.
ShowModal
() ==
wx
.
ID_OK
:
8
print
dialog
.
GetPath
()
9
dialog
.
Destroy
()
10
11
12