;ò çüCc @ s› d k Z d k Z d e i f d „ ƒ YZ d „ Z d Z e d j oP d k Z d k Z d k Z e i d e i i e i d ƒ g e i d ƒ n d S( Ns TestPanelc B s t Z d „ Z d „ Z RS( Nc C s t i i | | d d t i ƒ| | _ t i ƒ } t i | t i ƒ } | i | ƒ t i | d | d d f | i ƒ d | i ƒ d f ƒ } | i d ƒ | i t i | i | ƒ t i | d | d d f d t i ƒ} | i t i ƒ ƒ | i d ƒ | i t i | i | ƒ d S( Niÿÿÿÿs stylei i s This is a bitmap button.i ix s1 This is a bitmap button with wx.NO_BORDER style.( s wxs Panels __init__s selfs parents NO_FULL_REPAINT_ON_RESIZEs logs imagess getTest2Bitmaps bmps Masks BLUEs masks SetMasks BitmapButtons GetWidths GetHeights bs SetToolTipStrings Binds EVT_BUTTONs OnClicks NO_BORDERs SetBitmapSelecteds getRobinBitmap( s selfs parents logs bs masks bmp( ( sl /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/BitmapButton.pys __init__ s # c C s | i i d | i ƒ ƒ d S( Ns Click! (%d) ( s selfs logs writes events GetId( s selfs event( ( sl /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/BitmapButton.pys OnClick2 s ( s __name__s __module__s __init__s OnClick( ( ( sl /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/BitmapButton.pys TestPanel s 'c C s t | | ƒ } | Sd S( N( s TestPanels nbs logs win( s frames nbs logs win( ( sl /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/BitmapButton.pys runTest8 s s{
A BitmapButton control displays a bitmap. It can have a separate bitmap for each button state: normal, selected, disabled.
The bitmaps to be displayed should have a small number of colours, such as 16, to avoid palette problems.
A bitmap can be derived from most image formats using the wx.Image class.
s __main__s i i ( s wxs imagess Panels TestPanels runTests overviews __name__s syss oss runs mains paths basenames argv( s syss runs overviews runTests imagess wxs oss TestPanel( ( sl /mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/BitmapButton.pys ? s .