Esempio n. 1
0
        'wxPROPSHEET_LISTBOOK',
        # Tool book needs an image list
        #            'wxPROPSHEET_TOOLBOOK', 'wxPROPSHEET_BUTTONTOOLBOOK',
        'wxPROPSHEET_TREEBOOK',
        'wxPROPSHEET_SHRINKTOFIT'
    ]


c = component.SmartContainer(
    'wxPropertySheetDialog', ['frame', 'book', 'window', 'top_level'],
    ['pos', 'size', 'title', 'centered', 'icon', 'sheetstyle', 'buttons'],
    params={
        'buttons': ParamButtons,
        'sheetstyle': ParamSheetStyle
    },
    implicit_klass='propertysheetpage',
    implicit_page='PropertySheetPage',
    implicit_attributes=['label', 'selected', 'bitmap'],
    implicit_params={
        'label': params.ParamText,
        'selected': params.ParamBool
    },
    image=images.TreeDialog.GetImage())
c.isTopLevel = True
c.setSpecial('bitmap', attribute.BitmapAttribute)
c.setSpecial('icon', attribute.BitmapAttribute)
c.addStyles('wxDEFAULT_DIALOG_STYLE', 'wxCAPTION', 'wxFRAME_SHAPED',
            'wxTAB_TRAVERSAL', 'wxSTAY_ON_TOP', 'wxSYSTEM_MENU',
            'wxRESIZE_BORDER', 'wxCLOSE_BOX', 'wxMAXIMIZE_BOX',
            'wxMINIMIZE_BOX', 'wxDIALOG_MODAL', 'wxDIALOG_MODELESS',
            'wxDIALOG_NO_PARENT', 'wxNO_3D', 'wxTAB_TRAVERSAL')
Esempio n. 2
0
# Author:       Roman Rolinsky <*****@*****.**>
# Created:      05.09.2007
# RCS-ID:       $Id$

import xh_wxlib
from wx.tools.XRCed import component, params
from wx.tools.XRCed.globals import TRACE
from wx.lib.ticker_xrc import wxTickerXmlHandler

TRACE('*** creating wx.lib components')

# wx.lib.foldpanelbar.FoldPanelBar

c = component.SmartContainer('wx.lib.foldpanelbar.FoldPanelBar',
                             ['book', 'window', 'control'], ['pos', 'size'],
                             implicit_klass='foldpanel',
                             implicit_page='FoldPanel',
                             implicit_attributes=['label', 'collapsed'],
                             implicit_params={'collapsed': params.ParamBool})
c.addStyles('FPB_DEFAULT_STYLE', 'FPB_SINGLE_FOLD', 'FPB_COLLAPSE_TO_BOTTOM',
            'FPB_EXCLUSIVE_FOLD', 'FPB_HORIZONTAL', 'FPB_VERTICAL')
component.Manager.register(c)
component.Manager.addXmlHandler(xh_wxlib.FoldPanelBarXmlHandler)
component.Manager.setMenu(c, 'bar', 'fold panel bar', 'FoldPanelBar', 1000)

# wx.lib.ticker.Ticker


class ParamDirection(params.RadioBox):
    choices = {'right to left': 'rtl', 'left to right': 'ltr'}
    default = 'rtl'