--
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 wxpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Can such an overlay be accomplished with wxglade, or do I have to create a custom control which does all the work and just insert this custom control as any other widget?
I'm using PNG for the bitmap image. If I want the control/graphics to scale with sizers, I guess I would need a scalable image format (presumably SVG).
import wx
import wx.lib.sized_controls as wxSC
class wxLCD(wxSC.SizedPanel):
def __init__(self, parent, cols=COLS_DEFAULT, rows=ROWS_DEFAULT, font_size=FONT_SIZE, font_family=FONT_FAMILY, font_style=FONT_STYLE, font_weight=FONT_WEIGHT):
wxSC.SizedPanel.__init__(self, parent)
self.cols = cols
self.rows = rows
pane = self
pane.SetSizerType("grid", {'cols':self.cols, 'rows':self.rows})