File: ColorPanel.py

package info (click to toggle)
wxwidgets2.6 2.6.3.2.2-3%2Blenny1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 81,112 kB
  • ctags: 130,304
  • sloc: cpp: 820,106; ansic: 113,030; python: 107,469; makefile: 43,013; sh: 10,300; lex: 194; yacc: 128; xml: 95; pascal: 74
file content (17 lines) | stat: -rw-r--r-- 462 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# Note: this module is not a demo per se, but is used by many of 
# the demo modules for various purposes.
#

import wx

#---------------------------------------------------------------------------


class ColoredPanel(wx.Window):
    def __init__(self, parent, color):
        wx.Window.__init__(self, parent, -1, style = wx.SIMPLE_BORDER)
        self.SetBackgroundColour(color)

#---------------------------------------------------------------------------