PEATDB/Ekin/Plotting.py
def addToolBar(self):
        """Extra toolbar with save button etc"""
        t=Frame(self.parent)
        t.pack(fill=X)
        dpivar=IntVar()
        dpivar.set(300)
        Label(t, text='dpi:').pack(side=LEFT)
        Entry(t, textvariable=dpivar).pack(side=LEFT)
        b=Button(t, text='Save',width=5,command=lambda:self.saveFigure(dpivar.get()))
        b.pack(side=LEFT,padx=2,pady=2)
        b=Button(t, text='Options',command=self.plotOptions)
        b.pack(side=LEFT,padx=2,pady=2)
        #b=Button(t, text='Annotate',command=self.annotate)
        #b.pack(side=LEFT,padx=2,pady=2)
        return
Extra toolbar with save button etc
Extra toolbar with save button etc
Extra toolbar with save button etc
def addToolBar(self):
        t=Frame(self.parent)
        t.pack(fill=X)
        dpivar=IntVar()
        dpivar.set(300)
        Label(t, text='dpi:').pack(side=LEFT)
        Entry(t, textvariable=dpivar).pack(side=LEFT)
        b=Button(t, text='Save',width=5,command=lambda:self.saveFigure(dpivar.get()))
        b.pack(side=LEFT,padx=2,pady=2)
        b=Button(t, text='Options',command=self.plotOptions)
        b.pack(side=LEFT,padx=2,pady=2)
        return
def addToolBar ( self ) : t = Frame ( self . parent ) t . pack ( fill = X ) dpivar = IntVar ( ) dpivar . set ( 300 ) Label ( t , text = 'dpi:' ) . pack ( side = LEFT ) Entry ( t , textvariable = dpivar ) . pack ( side = LEFT ) b = Button ( t , text = 'Save' , width = 5 , command = lambda : self . saveFigure ( dpivar . get ( ) ) ) b . pack ( side = LEFT , padx = 2 , pady = 2 ) b = Button ( t , text = 'Options' , command = self . plotOptions ) b . pack ( side = LEFT , padx = 2 , pady = 2 ) return
Extra toolbar with save button etc
Extra toolbar with save button etc
"""Extra toolbar with save button etc""" #b=Button(t, text='Annotate',command=self.annotate) #b.pack(side=LEFT,padx=2,pady=2)
self