(self)
return
Save and set the prefs
Save and set the prefs
Save and set the prefs
def savePrefs(self):
        """Save and set the prefs"""

        try:
            self.prefs.set('horizlines', self.horizlinesvar.get())
            self.horizlines = self.horizlinesvar.get()
            self.prefs.set('vertlines', self.vertlinesvar.get())
            self.vertlines = self.vertlinesvar.get()
            self.prefs.set('alternaterows', self.alternaterowsvar.get())
            self.alternaterows = self.alternaterowsvar.get()
            self.prefs.set('rowheight', self.rowheightvar.get())
            self.rowheight = self.rowheightvar.get()
            self.prefs.set('cellwidth', self.cellwidthvar.get())
            self.cellwidth = self.cellwidthvar.get()
            self.prefs.set('align', self.cellalignvar.get())
            self.align = self.cellalignvar.get()
            self.prefs.set('linewidth', self.linewidthvar.get())
            self.linewidth = self.linewidthvar.get()
            self.prefs.set('celltextsize', self.celltextsizevar.get())
            self.prefs.set('celltextfont', self.fontvar.get())
            self.prefs.set('bgcolor', self.bgcolor)
            self.prefs.set('grid_color', self.grid_color)
            self.prefs.set('rowselectedcolor', self.rowselectedcolor)
            self.prefs.set('rowheaderwidth', self.rowheaderwidth)
            self.rowheaderwidth = self.rowheaderwidthvar.get()
            self.thefont = (self.prefs.get('celltextfont'), self.prefs.get('celltextsize'))
            self.fontsize = self.prefs.get('celltextsize')

        except ValueError as e:
            print (e)
            pass
        self.prefs.save_prefs()
        return
def savePrefs ( self ) : try : self . prefs . set ( 'horizlines' , self . horizlinesvar . get ( ) ) self . horizlines = self . horizlinesvar . get ( ) self . prefs . set ( 'vertlines' , self . vertlinesvar . get ( ) ) self . vertlines = self . vertlinesvar . get ( ) self . prefs . set ( 'alternaterows' , self . alternaterowsvar . get ( ) ) self . alternaterows = self . alternaterowsvar . get ( ) self . prefs . set ( 'rowheight' , self . rowheightvar . get ( ) ) self . rowheight = self . rowheightvar . get ( ) self . prefs . set ( 'cellwidth' , self . cellwidthvar . get ( ) ) self . cellwidth = self . cellwidthvar . get ( ) self . prefs . set ( 'align' , self . cellalignvar . get ( ) ) self . align = self . cellalignvar . get ( ) self . prefs . set ( 'linewidth' , self . linewidthvar . get ( ) ) self . linewidth = self . linewidthvar . get ( ) self . prefs . set ( 'celltextsize' , self . celltextsizevar . get ( ) ) self . prefs . set ( 'celltextfont' , self . fontvar . get ( ) ) self . prefs . set ( 'bgcolor' , self . bgcolor ) self . prefs . set ( 'grid_color' , self . grid_color ) self . prefs . set ( 'rowselectedcolor' , self . rowselectedcolor ) self . prefs . set ( 'rowheaderwidth' , self . rowheaderwidth ) self . rowheaderwidth = self . rowheaderwidthvar . get ( ) self . thefont = ( self . prefs . get ( 'celltextfont' ) , self . prefs . get ( 'celltextsize' ) ) self . fontsize = self . prefs . get ( 'celltextsize' ) except ValueError as e : print ( e ) pass self . prefs . save_prefs ( ) return