qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Fix a crash when pressing backspace at a menu
2008-01-31, Richard Nelson
1b25168abe7f
file is
Executable
Fix a crash when pressing backspace at a menu
#!/usr/bin/env python
import
gnt
,
sys
def
file_selected
(
widget
,
path
,
file
,
null
):
sys
.
stderr
.
write
(
path
+
" "
+
file
)
list
=
widget
.
get_selected_multi_files
()
for
i
in
list
:
sys
.
stderr
.
write
(
i
)
gnt
.
gnt_init
()
win
=
gnt
.
Window
()
files
=
gnt
.
FileSel
()
files
.
set_multi_select
(
True
)
files
.
set_title
(
"Files"
)
files
.
connect
(
"file_selected"
,
file_selected
,
None
)
files
.
show
()
gnt
.
gnt_main
()
gnt
.
gnt_quit
()