2007-03-15 17:10:12 +01:00
|
|
|
import gtk
|
|
|
|
|
|
|
|
from sugar.graphics import units
|
|
|
|
|
|
|
|
class FileChooserDialog(gtk.FileChooserDialog):
|
|
|
|
def __init__(self, title=None, parent=None,
|
|
|
|
action=gtk.FILE_CHOOSER_ACTION_OPEN, buttons=None):
|
2007-03-16 10:48:40 +01:00
|
|
|
gtk.FileChooserDialog.__init__(self, title, parent, action, buttons)
|
|
|
|
self.set_default_size(units.points_to_pixels(7 * 40),
|
|
|
|
units.points_to_pixels(7 * 30))
|