374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
c = gtk.FileChooserDialog(title, parent, action=action, buttons=buttons)
c.set_do_overwrite_confirmation(True)
# Params
if fn:
c.set_current_name(fn)
fn = ""
for fname,ftype in (formats or self.save_formats):
f = gtk.FileFilter()
f.set_name(fname)
f.add_pattern(ftype)
c.add_filter(f)
# Yes, that's how to retrieve signals for changed filter selections
try:
filterbox = c.get_children()[0].get_children()[0]
|
|
|
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
|
c = gtk.FileChooserDialog(title, parent, action=action, buttons=buttons)
c.set_do_overwrite_confirmation(True)
# Params
if fn:
c.set_current_name(fn)
fn = ""
for fname,ftype in (formats or uikit.save_formats):
f = gtk.FileFilter()
f.set_name(fname)
f.add_pattern(ftype)
c.add_filter(f)
# Yes, that's how to retrieve signals for changed filter selections
try:
filterbox = c.get_children()[0].get_children()[0]
|