diff options
author | Ummu <jeff@ummu.org> | 2009-07-24 11:36:26 +0400 |
---|---|---|
committer | Ummu <jeff@ummu.org> | 2009-07-24 11:36:26 +0400 |
commit | 9f05fc88321eb6abe808484ab4e10b326dc4cdf5 (patch) | |
tree | f938139d747fdb27e0e228fc54438fffd3905cfd | |
parent | 7c2cf3cb00b46ccf14f287394f172637cd1672c0 (diff) |
Linked buttons to tools. Today was the happiest day of my life I think.
-rw-r--r-- | src/whiteboardwidget.py | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/whiteboardwidget.py b/src/whiteboardwidget.py index a0327752b..9ece3a071 100644 --- a/src/whiteboardwidget.py +++ b/src/whiteboardwidget.py @@ -17,6 +17,7 @@ SVG Paths. class Whiteboard(object): def __init__(self, account, contact, session): + print 'init' xml = gtkgui_helpers.get_glade('whiteboard_widget.glade', 'whiteboard_hbox') self.hbox = xml.get_widget('whiteboard_hbox') @@ -53,7 +54,7 @@ class Whiteboard(object): print 'on_oval_button_clicked' def on_export_button_clicked(self, widget): - print 'on_export_button_clicked' + self.image.print_xml() def button_press_event(self, widget, event): x = event.x @@ -125,15 +126,6 @@ class Whiteboard(object): if self.item_temp is not None: self.item_temp.remove() self.item_temp = None - - def export(self, widget): - self.image.print_xml() - - def tool_brush(self,widget): - self.draw_tool = 'brush' - - def tool_oval(self, widget): - self.draw_tool = 'oval' class SVGObject(): ''' A class to store the svg document and make changes to it.''' |