class PropertiesDialog(gtk.Dialog):
"""File property dialog window."""
- def __init__(self, path, size, bytesize):
+ def __init__(self, app, path, size, bytesize):
"""Create&show file properties dialog."""
gtk.Dialog.__init__(self)
self.set_title( _('File properties') )
except (TypeError, ValueError):
self.mess_window('error', _('Please select file') )
return
- PropertiesDialog(path, size, bytesize)
+ PropertiesDialog(self, path, size, bytesize)
### Window initialization ##################################################
else:
startpath = expanduser('~')
- app = MainWindow(575, 345, startpath)
- app.run()
+ MainWindow(575, 345, startpath).run()
if __name__ == '__main__':
main()