Logo Search packages:      
Sourcecode: alarm-clock version File versions

BugReport.py

import gtk
import gtk.glade

class BugReport:
      def __init__(self, Prefix, MainClass, MainWindow):
            self.WindowGlade = gtk.glade.XML(Prefix + '/glade/main.glade', 'feedback_report')
            self.Window = self.WindowGlade.get_widget('feedback_report')
            self.Window.set_transient_for(MainWindow)
            self.Window.set_icon_from_file(Prefix + '/scalable/alarm-clock.svg')
            
            OkButton = self.WindowGlade.get_widget('ok_button')
            CancelButton = self.WindowGlade.get_widget('cancel_button')
            Event = self.WindowGlade.get_widget('event')
            
            Event.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(65535, 65535, 65535))
            self.WindowGlade.get_widget('ACIcon').set_from_file(Prefix + '/scalable/alarm-clock.svg')
            CancelButton.connect('clicked', self.Cancel)
            
      def Start(self):
            self.Window.show()
            
      def Cancel(self, Button):
            self.Window.destroy()

Generated by  Doxygen 1.6.0   Back to index