3 # BiaGen - front end to genisoimage
4 # Copyright 2010 V.Harishankar
5 # Licensed under the GNU GPL v3 or above
12 def add_item (self
, type):
14 dlg
= gtk
.FileChooserDialog (title
="Add files", action
=gtk
.FILE_CHOOSER_ACTION_OPEN
,
15 buttons
=(gtk
.STOCK_CANCEL
, gtk
.RESPONSE_CANCEL
, gtk
.STOCK_OPEN
, gtk
.RESPONSE_OK
))
17 dlg
= gtk
.FileChooserDialog (title
="Add folders", action
=gtk
.FILE_CHOOSER_ACTION_SELECT_FOLDER
,
18 buttons
=(gtk
.STOCK_CANCEL
, gtk
.RESPONSE_CANCEL
, gtk
.STOCK_OPEN
, gtk
.RESPONSE_OK
))
20 dlg
.set_property ("select-multiple", True)
25 def on_btn_add_clicked (self
, *args
):
26 self
.add_item (type=1)
28 def on_btn_exit_clicked (self
, *args
):
31 def on_main_window_hide (self
, *args
):
36 ui
.add_from_file ("main_window.xml")
37 ui
.get_object ("main_window").show ()
38 ui
.connect_signals (self
)