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)
Beispiel #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
     )
    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
Beispiel #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
    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
    def __init__(self, parent, showBox=True):
        self.parent = parent
        self.showBox = showBox
        self.enabled = True

        PyGridCellRenderer.__init__(self)
 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
Beispiel #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)
Beispiel #11
0
    def __init__(self, parent, showBox=True):
        self.parent = parent
        self.showBox = showBox
        self.enabled = True

        PyGridCellRenderer.__init__(self)
Beispiel #12
0
 def __init__(self):
     PyGridCellRenderer.__init__(self)