Set grid cell background transparency

ioprst <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
How can I set the background transparency of a grid cell. Or is it 
impossible?

import wx
import wx.grid


class Frame(wx.Frame):

    def __init__(self, parent):
        super().__init__(parent)

        grid = wx.grid.Grid(self)
        grid.CreateGrid(3, 3)

        grid.SetCellBackgroundColour(0, 0, wx.Colour(255, 0, 0, 0))
        grid.SetCellBackgroundColour(1, 0, wx.Colour(255, 0, 0, 127))
        grid.SetCellBackgroundColour(2, 0, wx.Colour(255, 0, 0, 255))


if __name__ == '__main__':
    app = wx.App()
    frame = Frame(None)
    frame.Show()
    app.MainLoop()

[image: Снимок.PNG] <about:invalid#zClosurez>







-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/308e8ba3-6920-4921-bdf5-74b1a2194e22%40googlegroups.com.
Снимок.PNG (image/png, 4.8 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.