parameters: (self, graphic)
docstring: ! Run function
          @param self this object
          @param graphic graphic
          @return none
docstring_summary: ! Run function
docstring_tokens: ! Run function
function: def run(self, graphic):
          """! Run function
          @param self this object
          @param graphic graphic
          @return none
          """
          window = gtk.Window()
          self.__window = window
          window.set_default_size(200, 200)
          vbox = gtk.VBox()
          window.add(vbox)
          render = GtkGraphicRenderer(graphic)
          self.__render = render
          vbox.pack_end(render, True, True, 0)
          hbox = gtk.HBox()
          vbox.pack_start(hbox, False, False, 0)
          smaller_zoom = gtk.Button("Zoom Out")
          smaller_zoom.connect("clicked", self.__set_smaller_cb)
          hbox.pack_start(smaller_zoom)
          bigger_zoom = gtk.Button("Zoom In")
          bigger_zoom.connect("clicked", self.__set_bigger_cb)
          hbox.pack_start(bigger_zoom)
          output_png = gtk.Button("Output Png")
          output_png.connect("clicked", self.__output_png_cb)
          hbox.pack_start(output_png)
          window.connect('destroy', gtk.main_quit)
          window.show_all()
          #gtk.bindings_activate(gtk.main_quit, 'q', 0)
          gtk.main()
function_tokens: def run ( self , graphic ) : window = gtk . Window ( ) self . __window = window window . set_default_size ( 200 , 200 ) vbox = gtk . VBox ( ) window . add ( vbox ) render = GtkGraphicRenderer ( graphic ) self . __render = render vbox . pack_end ( render , True , True , 0 ) hbox = gtk . HBox ( ) vbox . pack_start ( hbox , False , False , 0 ) smaller_zoom = gtk . Button ( "Zoom Out" ) smaller_zoom . connect ( "clicked" , self . __set_smaller_cb ) hbox . pack_start ( smaller_zoom ) bigger_zoom = gtk . Button ( "Zoom In" ) bigger_zoom . connect ( "clicked" , self . __set_bigger_cb ) hbox . pack_start ( bigger_zoom ) output_png = gtk . Button ( "Output Png" ) output_png . connect ( "clicked" , self . __output_png_cb ) hbox . pack_start ( output_png ) window . connect ( 'destroy' , gtk . main_quit ) window . show_all ( ) #gtk.bindings_activate(gtk.main_quit, 'q', 0) gtk . main ( )