/[ascend]/branches/mike/pygtk/canvas/blocklist.py
ViewVC logotype

Diff of /branches/mike/pygtk/canvas/blocklist.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3106 by jpye, Thu May 12 04:05:35 2016 UTC revision 3107 by mike, Mon Jun 6 01:23:53 2016 UTC
# Line 221  class mainWindow(Gtk.Window): Line 221  class mainWindow(Gtk.Window):
221          '''The Toolbar Definations start here'''          '''The Toolbar Definations start here'''
222    
223          tb = Gtk.Toolbar()          tb = Gtk.Toolbar()
224            tb.set_style(Gtk.ToolbarStyle.BOTH)
225          #Load Button          #Load Button
226          loadbutton = Gtk.ToolButton(Gtk.STOCK_OPEN)          loadbutton = Gtk.ToolButton(Gtk.STOCK_OPEN)
227            loadbutton.set_label("Load")
228          loadbutton.connect("clicked",self.fileopen)          loadbutton.connect("clicked",self.fileopen)
229          tb.insert(loadbutton,0)          tb.insert(loadbutton,0)
230    
231          #Save Button          #Save Button
232          savebutton = Gtk.ToolButton(Gtk.STOCK_SAVE)          savebutton = Gtk.ToolButton(Gtk.STOCK_SAVE)
233            savebutton.set_label("Save")
234          savebutton.connect("clicked",self.save_canvas)          savebutton.connect("clicked",self.save_canvas)
235          tb.insert(savebutton,1)          tb.insert(savebutton,1)
236    
237            # Undo Button
238            undob = Gtk.ToolButton(Gtk.STOCK_UNDO)
239            undob.set_label("Undo")
240            undob.connect("clicked", self.undo_canvas)
241            tb.insert(undob, 2)
242    
243            # Redo Button
244            redob = Gtk.ToolButton(Gtk.STOCK_REDO)
245            redob.set_label("Redo")
246            redob.connect("clicked", self.redo_canvas)
247            tb.insert(redob, 3)
248    
249          #Debug Button          #Debug Button
250          debugbutton = Gtk.ToolButton(Gtk.STOCK_PROPERTIES)          debugbutton = Gtk.ToolButton(Gtk.STOCK_PROPERTIES)
251          debugbutton.set_label("Debug")          debugbutton.set_label("Debug")
252          debugbutton.connect("clicked",self.debug_canvas)          debugbutton.connect("clicked",self.debug_canvas)
253          tb.insert(debugbutton,2)          tb.insert(debugbutton,4)
254    
255          #Preview Button          #Preview Button
256          previewb = Gtk.ToolButton(Gtk.STOCK_PRINT_PREVIEW)          previewb = Gtk.ToolButton(Gtk.STOCK_PRINT_PREVIEW)
257          previewb.set_label("Preview")          previewb.set_label("Preview")
258          previewb.connect("clicked",self.preview_canvas)          previewb.connect("clicked",self.preview_canvas)
259          tb.insert(previewb,3)          tb.insert(previewb,5)
260    
261          #Export Button          #Export Button
262          exportbutton = Gtk.ToolButton(Gtk.STOCK_CONVERT)          exportbutton = Gtk.ToolButton(Gtk.STOCK_CONVERT)
263          exportbutton.set_label("Export SVG")          exportbutton.set_label("Export SVG")
264          exportbutton.connect("clicked",self.export_svg_as)          exportbutton.connect("clicked",self.export_svg_as)
265          tb.insert(exportbutton,2)          tb.insert(exportbutton,6)
266    
267          #Run Button          #Run Button
268          runb = Gtk.ToolButton(Gtk.STOCK_EXECUTE)          runb = Gtk.ToolButton(Gtk.STOCK_EXECUTE)
269          runb.set_label("Run")          runb.set_label("Run")
270          runb.connect("clicked",self.run_canvas)          runb.connect("clicked",self.run_canvas)
271          tb.insert(runb, 4)          tb.insert(runb,7)
272    
273          ##Custom Entry          ##Custom Entry
274          #m_entry = Gtk.ToolButton(Gtk.STOCK_SAVE_AS)          #m_entry = Gtk.ToolButton(Gtk.STOCK_SAVE_AS)

Legend:
Removed from v.3106  
changed lines
  Added in v.3107

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22