diff options
Diffstat (limited to 'g-ed-it/commitDialog.py')
-rw-r--r-- | g-ed-it/commitDialog.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/g-ed-it/commitDialog.py b/g-ed-it/commitDialog.py new file mode 100644 index 0000000..a0bc052 --- /dev/null +++ b/g-ed-it/commitDialog.py @@ -0,0 +1,39 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +class CommitDialog (object): + + def __init__(self,window,glade_xml): + self.window = window + self.glade_xml = glade_xml + self.load_dialog() + pass + + def load_dialog(self): + self.commit_dialog = self.glade_xml.get_widget("commit_dialog") + self.commit_dialog.hide() + self.commit_dialog.set_transient_for(self.window) + self.commit_dialog.connect("delete_event", self.commit_dialog.hide_on_delete) + + self.commit_button = self.glade_xml.get_widget("commit_button") + self.commit_button.connect("clicked", self.on_commit_button_clicked) + + self.close_button = self.glade_xml.get_widget("cancel_button") + self.close_button.connect("clicked", self.on_cancel_button_clicked) + + self.commit_text_box = self.glade_xml.get_widget("commit_text") + self.commit_text_box.connect("changed", self.on_commit_text_changed) + + def on_cancel_button_clicked(self, close_button): + self.commit_dialog.hide() + + def on_commit_button_clicked(self, close_button): + pass + + def on_commit_text_changed(self, commit_text_entry): + pass + + def show(self): + self.commit_dialog.show() + + |