~brian-murray/apport/bug-1345653

« back to all changes in this revision

Viewing changes to gtk/apport-gtk

  • Committer: martin at piware
  • Date: 2006-07-27 09:59:05 UTC
  • Revision ID: martin@piware.de-20060727095905-b0689bf68d045590
add initial GTK frontend bits: glade file, icon, skeleton code

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
import gtk, gtk.glade
 
3
import math
 
4
 
 
5
class ApportGTK:
 
6
    def __init__(self):
 
7
        self.widgets = gtk.glade.XML('apport-gtk.glade')
 
8
        self.widgets.signal_autoconnect(self)
 
9
 
 
10
    def quit(self, widget, *auxargs):
 
11
        gtk.main_quit()
 
12
 
 
13
    def w(self, widget):
 
14
        '''Shortcut for getting a widget.'''
 
15
 
 
16
        return self.widgets.get_widget(widget)
 
17
 
 
18
    def on_about_activate(self, widget):
 
19
        print 'mii'
 
20
        d = self.w('dialog_about')
 
21
        d.run()
 
22
        d.hide()
 
23
 
 
24
if __name__ == '__main__':
 
25
    app = ApportGTK()
 
26
    gtk.main()
 
27