def __init__(self, width, client, **kwds): font = self.predict_font(kwds) h = font.get_linesize() d = 2 * self.predict(kwds, 'margin') PaletteView.__init__(self, (width - d, h), 10, 1, scrolling=True, **kwds) self.client = client self.selection = None self.names = []
def __init__(self, width, client, **kwds): font = self.predict_font(kwds) h = font.get_linesize() d = 2 * self.predict(kwds, 'margin') PaletteView.__init__(self, (width - d, h), 10, 1, scrolling = True, **kwds) self.client = client self.selection = None self.names = []
def __init__(self): PaletteView.__init__(self, (30, 30), 2, 2, scrolling = True) self.selection = None