def __init__(self, color="black", font="ARIAL", fontsize=8):
     PyGridCellRenderer.__init__(self)
     self.color = color
     self.foundary = font
     self.fontsize = fontsize
     self.font = wx.Font(fontsize, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0,
                         font)
Esempio n. 2
0
 def __init__(self, color="black", font="ARIAL", fontsize=8):
     PyGridCellRenderer.__init__(self)
     self.color = color
     self.foundary = font
     self.fontsize = fontsize
     self.font = wx.Font(
         fontsize, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, 0, font
     )
Esempio n. 3
0
    def __init__(self, column):
        """ Creates a new ThemedCellRenderer.
        """
        PyGridCellRenderer.__init__(self)

        # We are merging the pyface grid GridCellRenderer interface with the
        # wx.grid.PyGridCellRenderer interface, so we need to do this:
        self.renderer = self

        # Save the reference to the TableColumn:
        self.column = column
Esempio n. 4
0
    def __init__(self, column):
        """ Creates a new ThemedCellRenderer.
        """
        PyGridCellRenderer.__init__(self)

        # We are merging the pyface grid GridCellRenderer interface with the
        # wx.grid.PyGridCellRenderer interface, so we need to do this:
        self.renderer = self

        # Save the reference to the TableColumn:
        self.column = column
    def __init__(self, provider=None):
        """ Build a new PyGridCellImageRenderer.

            'provider', if provided, should implement
            get_image_for_cell(row, col) to specify an image to appear
            in the cell at row, col. """

        PyGridCellRenderer.__init__(self)

        # save the string renderer to use for text.
        self._string_renderer = GridCellStringRenderer()

        self._provider = provider

        return
Esempio n. 6
0
    def __init__(self, provider = None):
        """ Build a new PyGridCellImageRenderer.

            'provider', if provided, should implement
            get_image_for_cell(row, col) to specify an image to appear
            in the cell at row, col. """

        PyGridCellRenderer.__init__(self)

        # save the string renderer to use for text.
        self._string_renderer = GridCellStringRenderer()

        self._provider = provider

        return
Esempio n. 7
0
    def __init__(self, parent, showBox=True):
        self.parent = parent
        self.showBox = showBox
        self.enabled = True

        PyGridCellRenderer.__init__(self)
Esempio n. 8
0
 def __init__(self):
     PyGridCellRenderer.__init__(self)
 def GetBestSize88(self, grid, attr, dc, row, col):
     """ This crashes the app - hmmmm. """
     size = PyGridCellRenderer.GetBestSize(self, grid, attr, dc, row, col)
     print('-----------------------------', size)
     return size
Esempio n. 10
0
 def __init__(self, color="black", font="ARIAL", fontsize=8):
     PyGridCellRenderer.__init__(self)
     self.color = color
     self.foundary = font
     self.fontsize = fontsize
     self.font = wx.Font(fontsize, wx.DEFAULT, wx.NORMAL, wx.NORMAL,0, font)
Esempio n. 11
0
    def __init__(self, parent, showBox=True):
        self.parent = parent
        self.showBox = showBox
        self.enabled = True

        PyGridCellRenderer.__init__(self)
Esempio n. 12
0
 def __init__(self):
     PyGridCellRenderer.__init__(self)