Changeset 708

Show
Ignore:
Timestamp:
09/22/03 16:50:29 (5 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBFoundation/RBFoundation/_InstallerHookUtilities.py

    r698 r708  
    7171    return map(str, modules.keys()) 
    7272 
     73def MakePackageHookVerbose(*args, **kw): 
     74    print "Hidden imports:" 
     75    hiddenimports = MakePackageHook(*args, **kw) 
     76    for each in hiddenimports: 
     77        print "    \"%s\"" % each 
     78    return hiddenimports 
     79 
  • trunk/RBRapier/support/Installer-hooks/hook-RBRapier.Formats.SVG.py

    r701 r708  
    2424#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2525 
    26 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     26from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2727from RBRapier.Formats.SVG import SVGSkin as _Package 
    2828 
     
    3131#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3232 
    33 print "Hidden imports:" 
    34 hiddenimports = MakePackageHook('RBRapier.Formats.SVG.SVGSkin', _Package.__file__) 
    35 for each in hiddenimports: 
    36     print "    \"%s\"" % each 
     33hiddenimports = MakePackageHookVerbose('RBRapier.Formats.SVG.SVGSkin', _Package.__file__) 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/dockhost.py

    r610 r708  
    6060        kwSettings = self.wxSettingDict(['prepend', 'hideempty', 'rootparent', 'rootlayout'], 
    6161            prepend=True, hideempty=False, rootparent=winParent, rootlayout=winParent.GetSizer()) 
     62 
    6263        self.object = wxSkinDockHost(winParent, layout, **kwSettings) 
    6364 
  • trunk/RBSkinning/demo/wxPythonSkin/docking/docking_sash.py

    r603 r708  
    6565 
    6666                <!-- Top --> 
    67                 <sash_layout show='False' sashsize='100,100' edges='wxSASH_BOTTOM,' orientation='wxLAYOUT_HORIZONTAL' alignment='wxLAYOUT_TOP'> 
     67                <sash_layout ctxvar='behaviormodel.SashTop' show='False' sashsize='100,100' edges='wxSASH_BOTTOM,' orientation='wxLAYOUT_HORIZONTAL' alignment='wxLAYOUT_TOP'> 
    6868                    <panel> 
    6969                        <layout orientation='horizontal' > 
    70                             <sash_dockhost ctxvar='behaviormodel.DHTop' /> 
     70                            <sash_dockhost prepend='False' ctxvar='behaviormodel.DHTop' /> 
    7171                        </layout> 
    7272                    </panel> 
     
    7474 
    7575                <!-- Bottom --> 
    76                 <sash_layout show='False' sashsize='100,100' edges='wxSASH_TOP,' orientation='wxLAYOUT_HORIZONTAL' alignment='wxLAYOUT_BOTTOM'> 
     76                <sash_layout ctxvar='behaviormodel.SashBottom' show='False' sashsize='100,100' edges='wxSASH_TOP,' orientation='wxLAYOUT_HORIZONTAL' alignment='wxLAYOUT_BOTTOM'> 
    7777                    <panel> 
    7878                        <layout orientation='horizontal' > 
     
    8383 
    8484                <!-- Left --> 
    85                 <sash_layout show='False' sashsize='200,200' edges='wxSASH_RIGHT,' orientation='wxLAYOUT_VERTICAL' alignment='wxLAYOUT_LEFT'> 
     85                <sash_layout ctxvar='behaviormodel.SashLeft' show='False' sashsize='200,200' edges='wxSASH_RIGHT,' orientation='wxLAYOUT_VERTICAL' alignment='wxLAYOUT_LEFT'> 
    8686                    <panel> 
    8787                        <layout orientation='vertical' > 
     
    9292 
    9393                <!-- Right --> 
    94                 <sash_layout show='False' sashsize='200,200' edges='wxSASH_LEFT,' orientation='wxLAYOUT_VERTICAL' alignment='wxLAYOUT_RIGHT'> 
     94                <sash_layout ctxvar='behaviormodel.SashRight' show='False' sashsize='200,200' edges='wxSASH_LEFT,' orientation='wxLAYOUT_VERTICAL' alignment='wxLAYOUT_RIGHT'> 
    9595                    <panel> 
    9696                        <layout orientation='vertical' > 
     
    138138#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    139139 
     140from RBSkinning.wxTools.wxExpandableSizers import wxWindowExpander 
    140141class BehaviorModel(object): 
     142    def AD(self, *args, **kw): 
     143        e = wxWindowExpander(self.frame) 
     144        e.AdjustDimensions(*args, **kw) 
     145        self.lastargs = args 
     146 
    141147    def DockBottom(self, evt): 
    142148        self.DHBottom.DockItem(self.dockable) 
     149        self.AD(self.SashBottom, False, False, True) 
    143150 
    144151    def DockTop(self, evt): 
    145152        self.DHTop.DockItem(self.dockable) 
     153        self.AD(self.SashTop, True, False, True) 
    146154 
    147155    def DockLeft(self, evt): 
    148156        self.dockable.DockTo(self.DHLeft) 
     157        self.AD(self.SashLeft, True, True, False) 
    149158 
    150159    def DockRight(self, evt): 
    151160        self.dockable.DockTo(self.DHRight) 
     161        self.AD(self.SashRight, False, True, False) 
    152162 
    153163    def DockHide(self, evt): 
    154164        self.dockable.Undock() 
     165        self.AD(sign=-1, *self.lastargs) 
    155166 
    156167    def DockToggle(self, evt): 
    157168        self.dockable.DockToggle() 
     169        self.AD(sign=-1, *self.lastargs) 
    158170 
    159171    __first_free = True 
  • trunk/RBSkinning/support/Installer-hooks/hook-RBSkinning.dotSkin.py

    r635 r708  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
    22 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     22from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2323import RBSkinning.dotSkin as _Package 
    2424 
    25 hiddenimports = MakePackageHook('RBSkinning.dotSkin', _Package.__file__) 
     25hiddenimports = MakePackageHookVerbose('RBSkinning.dotSkin', _Package.__file__) 
    2626 
  • trunk/RBSkinning/support/Installer-hooks/hook-RBSkinning.skin.py

    r635 r708  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
    22 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     22from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2323import RBSkinning.skin as _Package 
    2424 
    25 hiddenimports = MakePackageHook('RBSkinning.skin', _Package.__file__) 
     25hiddenimports = MakePackageHookVerbose('RBSkinning.skin', _Package.__file__) 
  • trunk/RBSkinning/support/Installer-hooks/hook-RBSkinning.wxPythonSkin.py

    r635 r708  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
    22 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     22from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2323import RBSkinning.wxPythonSkin as _Package 
    2424 
    25 hiddenimports = MakePackageHook('RBSkinning.wxPythonSkin', _Package.__file__) 
     25hiddenimports = MakePackageHookVerbose('RBSkinning.wxPythonSkin', _Package.__file__) 
    2626 
  • trunk/RBSkinning/support/Installer-hooks/hook-RBSkinning.xhtml.py

    r635 r708  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
    22 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     22from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2323import RBSkinning.xhtml as _Package 
    2424 
    25 hiddenimports = MakePackageHook('RBSkinning.xhtml', _Package.__file__) 
     25hiddenimports = MakePackageHookVerbose('RBSkinning.xhtml', _Package.__file__) 
  • trunk/RBSkinning/support/Installer-hooks/hook-RBSkinning.xmlObjectifySkin.py

    r635 r708  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
    22 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     22from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2323import RBSkinning.xmlObjectifySkin as _Package 
    2424 
    25 hiddenimports = MakePackageHook('RBSkinning.xmlObjectifySkin', _Package.__file__) 
     25hiddenimports = MakePackageHookVerbose('RBSkinning.xmlObjectifySkin', _Package.__file__) 
  • trunk/RBSkinning/support/Installer-hooks/hook-RBSkinning.xmlPython.py

    r635 r708  
    2020##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2121 
    22 from RBFoundation._InstallerHookUtilities import MakePackageHook 
     22from RBFoundation._InstallerHookUtilities import MakePackageHookVerbose 
    2323import RBSkinning.xmlPython as _Package 
    2424 
    25 hiddenimports = MakePackageHook('RBSkinning.xmlPython', _Package.__file__) 
     25hiddenimports = MakePackageHookVerbose('RBSkinning.xmlPython', _Package.__file__)