~rick-rickspencer3/pm-dashboard/sebified

« back to all changes in this revision

Viewing changes to MainWindow.py

  • Committer: Rick Spencer
  • Date: 2009-06-11 02:15:01 UTC
  • Revision ID: rick@rick-desktop-20090611021501-rw87hyfd8v2fnsrl
mostly got triaging buttons working. Cleaned up code, added comments here and there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
  rel_item = gtk.MenuItem("_Release Bugs")
69
69
  rel_item.connect("activate", self.release_bugs)
70
70
  bug_menu.append(rel_item)
 
71
 
 
72
  
71
73
  
72
74
  next_item = gtk.MenuItem("_Next Bug")
73
75
  next_item.connect("activate", self.next_bug)
83
85
  prev_item.add_accelerator("activate", self.accel_group, key, 
84
86
            gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)
85
87
 
 
88
  ni_item = gtk.MenuItem("Needs _Info")
 
89
  ni_item.connect("activate", self.needs_info)
 
90
  bug_menu.append(ni_item)
 
91
  key, mod = gtk.accelerator_parse("I")
 
92
  ni_item.add_accelerator("activate", self.accel_group, key, 
 
93
            gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)
 
94
 
 
95
  comm_item = gtk.MenuItem("_Community Fix")
 
96
  comm_item.connect("activate", self.community_fix)
 
97
  bug_menu.append(comm_item)
 
98
  key, mod = gtk.accelerator_parse("C")
 
99
  comm_item.add_accelerator("activate", self.accel_group, key, 
 
100
            gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)
 
101
 
 
102
  fix_item = gtk.MenuItem("_Desktop Team Fix")
 
103
  fix_item.connect("activate", self.desktop_team_fix)
 
104
  bug_menu.append(fix_item)
 
105
  key, mod = gtk.accelerator_parse("D")
 
106
  fix_item.add_accelerator("activate", self.accel_group, key, 
 
107
            gtk.gdk.CONTROL_MASK, gtk.ACCEL_VISIBLE)
 
108
 
86
109
  self.menu_bar.append(filem)
87
110
  self.menu_bar.append(bugm)
88
111
  self.menu_bar.show_all()
157
180
    except:
158
181
     print "Current page does not support Previous Bug function. The developer should implement 'previous' function for the page widget."
159
182
 
 
183
 def needs_info(self, widget, data = None):
 
184
  print "needs_info"
 
185
 
 
186
 def community_fix(self, widget, data = None):
 
187
  print "community_fix"
 
188
 
 
189
 def desktop_team_fix(self, widget, data = None):
 
190
  print "desktop_team_fix"
 
191
 
 
192
 
160
193
if __name__ == "__main__":
161
194
 app_name = "pm-dashboard"
162
195
 gtk.gdk.threads_init()