Changeset 174

Show
Ignore:
Timestamp:
06/17/02 14:50:34 (6 years ago)
Author:
sholloway
Message:

Added sashes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBSkinning/RBSkinning/test.skin

    r153 r174  
    11<?xml version='1.0'?>  
    22<skin:skin xmlns:skin='http://namespaces.runeblade.com/skin' xmlns:py='http://namespaces.runeblade.com/xmlPython' xmlns='http://namespaces.runeblade.com/wxPythonSkin'> 
    3     <application> 
    4         <mdi_parent_frame title='Parent' show='1'> 
    5             <menu_bar> 
     3    <py:inline> 
     4        from wxPython import wx 
     5        self.AddNamespace(wx) 
     6        from wxPython import stc 
     7        self.AddNamespace(stc) 
     8        from Foundation import ContextApply 
     9        self.AddNamespace(ContextApply) 
     10    </py:inline> 
     11 
     12    <application /> 
     13 
     14    <mdi_parent_frame title='Parent' show='1'> 
     15        <menu_bar> 
     16            <menu text='File'> 
     17                <menu_item text="Hello" /> 
     18                <menu_break/> 
     19                <menu_item text="Goodbye" /> 
    620                <menu text='File'> 
    721                    <menu_item text="Hello" /> 
    822                    <menu_break/> 
    923                    <menu_item text="Goodbye" /> 
    10                     <menu text='File'> 
    11                         <menu_item text="Hello" /> 
    12                         <menu_break/> 
    13                         <menu_item text="Goodbye" /> 
    14                     </menu> 
    1524                </menu> 
    16             </menu_bar> 
     25            </menu> 
     26        </menu_bar> 
    1727 
    18             <status_bar/> 
     28        <status_bar/> 
    1929 
    20             <mini_frame title='Hello Runeblade' show='1' pos='self.parent().object.ClientToScreen((350,350))'> 
    21                 <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
    22                     <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     30        <mini_frame title='Hello Runeblade' show='1' pos='self.parent().object.ClientToScreen((350,350))'> 
     31            <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
     32                <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     33                    <layout> 
     34                        <column_list sizerOption='1' sizerFlag='wxEXPAND' columns='"Shane", "William", "Holloway"' /> 
     35                        <tree sizerOption='1' sizerFlag='wxEXPAND' columns='"Shane", "William", "Holloway"' > 
     36                            <image_list /> 
     37                        </tree> 
     38                    </layout> 
     39                </panel> 
     40            </layout> 
     41        </mini_frame> 
     42 
     43 
     44        <mdi_child_frame title='Sash Test' show='1'> 
     45            <layout sizerOption='1' sizerFlag='wxEXPAND'> 
     46                <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     47                    <layout_algorithm> 
     48                        <panel> <layout> <text sizerOption='1' sizerFlag='wxEXPAND'/> </layout> </panel> 
     49                    </layout_algorithm> 
     50 
     51                    <!-- Top --> 
     52                    <sash_layout sashsize='40,40' edges='wxSASH_BOTTOM,' orientation='wxLAYOUT_HORIZONTAL' alignment='wxLAYOUT_TOP'> 
     53                        <panel> 
     54                            <layout orientation='horizontal' sizerOptionDefault='1' > 
     55                                <input sizerOption='10'/> 
     56                                <button label='Top!'/> 
     57                            </layout> 
     58                        </panel> 
     59                    </sash_layout> 
     60 
     61                    <!-- Bottom --> 
     62                    <sash_layout sashsize='40,40' edges='wxSASH_TOP,' orientation='wxLAYOUT_HORIZONTAL' alignment='wxLAYOUT_BOTTOM'> 
     63                        <panel> 
     64                            <layout orientation='horizontal' sizerOptionDefault='1' sizerFlagDefault='wxEXPAND'> 
     65                                <button label='Bottom!'/> 
     66                                <text sizerOption='10'/> 
     67                            </layout> 
     68                        </panel> 
     69                    </sash_layout> 
     70 
     71                    <!-- Left --> 
     72                    <sash_layout sashsize='200,200' edges='wxSASH_RIGHT,' orientation='wxLAYOUT_VERTICAL' alignment='wxLAYOUT_LEFT'> 
     73                        <column_list columns='"monday", "tuesday", "friday"' /> 
     74                    </sash_layout> 
     75 
     76                    <!-- Right --> 
     77                    <sash_layout sashsize='200,200' edges='wxSASH_LEFT,' orientation='wxLAYOUT_VERTICAL' alignment='wxLAYOUT_RIGHT'> 
     78                        <column_list columns='"in", "out", "upside-down"' /> 
     79                    </sash_layout> 
     80                </panel> 
     81            </layout> 
     82        </mdi_child_frame> 
     83 
     84        <mdi_child_frame title='Hello World' show='1'> 
     85            <icon name='pycon.ico'/> 
     86            <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
     87                <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     88                    <layout> 
    2389                        <layout> 
    24                             <column_list sizerOption='1' sizerFlag='wxEXPAND' columns='"Shane", "William", "Holloway"' /> 
    25                             <tree sizerOption='1' sizerFlag='wxEXPAND' columns='"Shane", "William", "Holloway"' > 
    26                                 <image_list /> 
    27                             </tree> 
     90                            <button label='button 1' bgcolor='MEDIUM SLATE BLUE'/> 
     91                            <layout_spacer size='(10, -1)' /> 
     92                            <button label='button 2' bgcolor='#FFAAFF'/> 
     93                            <layout_spacer size='(10, -1)' /> 
     94                            <toggle_button label='toggle button 1' /> 
     95                            <layout_spacer size='(10, -1)' /> 
     96                            <toggle_button label='toggle button 2' /> 
     97                            <layout_spacer size='(10, -1)' /> 
     98                            <line size='(1, 20)' style='wxLI_VERTICAL' sizerFlag='wxEXPAND' /> 
     99                            <layout_spacer size='(10, -1)' /> 
     100                            <check label='check 1' value='1'/> 
     101                            <layout_spacer size='(10, -1)' /> 
     102                            <check label='check 2' value='0'/> 
     103                            <layout_spacer size='(10, -1)' /> 
     104                            <radio label='radio 1' value='1'/> 
     105                            <layout_spacer size='(10, -1)' /> 
     106                            <radio label='radio 2' value='0'/> 
    28107                        </layout> 
    29                     </panel> 
    30                 </layout> 
    31             </mini_frame> 
    32  
    33             <mdi_child_frame title='Hello World' show='1'> 
    34                 <icon name='pycon.ico'/> 
    35                 <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
    36                     <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     108                        <layout_spacer size='(-1, 10)' /> 
    37109                        <layout> 
     110                            <bitmap_button> 
     111                                <image name='test_image.jpg' /> 
     112                                <image name='test_image_dn.jpg' call='Selected' /> 
     113                            </bitmap_button> 
     114                            <layout_spacer size='(10, -1)' /> 
    38115                            <layout> 
    39                                 <button label='button 1' bgcolor='MEDIUM SLATE BLUE'/> 
    40                                 <layout_spacer size='(10, -1)' /> 
    41                                 <button label='button 2' bgcolor='#FFAAFF'/> 
    42                                 <layout_spacer size='(10, -1)' /> 
    43                                 <toggle_button label='toggle button 1' /> 
    44                                 <layout_spacer size='(10, -1)' /> 
    45                                 <toggle_button label='toggle button 2' /> 
    46                                 <layout_spacer size='(10, -1)' /> 
    47                                 <line size='(1, 20)' style='wxLI_VERTICAL' sizerFlag='wxEXPAND' /> 
    48                                 <layout_spacer size='(10, -1)' /> 
    49                                 <check label='check 1' value='1'/> 
    50                                 <layout_spacer size='(10, -1)' /> 
    51                                 <check label='check 2' value='0'/> 
    52                                 <layout_spacer size='(10, -1)' /> 
    53                                 <radio label='radio 1' value='1'/> 
    54                                 <layout_spacer size='(10, -1)' /> 
    55                                 <radio label='radio 2' value='0'/> 
     116                                <slider /> 
     117                                <layout_spacer size='(-1, 10)' /> 
     118                                <input /> 
    56119                            </layout> 
    57                             <layout_spacer size='(-1, 10)' /> 
     120                            <layout_spacer size='(10, -1)' /> 
     121                            <text size='100,100' /> 
     122                            <layout_spacer size='(10, -1)' /> 
     123                            <bitmap> 
     124                                <image name='test_image.jpg' /> 
     125                            </bitmap> 
     126                        </layout> 
     127                        <layout_spacer size='(-1, 10)' /> 
     128                        <layout> 
     129                            <list selection='2'> 
     130                                Shane 
     131                                William 
     132                                Holloway 
     133                            </list> 
     134                            <layout_spacer size='(10, -1)' /> 
     135                            <check_list selection='0'> 
     136                                Shane 
     137                                William 
     138                                Holloway 
     139                            </check_list> 
     140                            <layout_spacer size='(10, -1)' /> 
    58141                            <layout> 
    59                                 <bitmap_button> 
    60                                     <image name='test_image.jpg' /> 
    61                                     <image name='test_image_dn.jpg' call='Selected' /> 
    62                                 </bitmap_button> 
    63                                 <layout_spacer size='(10, -1)' /> 
    64                                 <layout> 
    65                                     <slider /> 
    66                                     <layout_spacer size='(-1, 10)' /> 
    67                                     <input /> 
    68                                 </layout> 
    69                                 <layout_spacer size='(10, -1)' /> 
    70                                 <text size='100,100' /> 
    71                                 <layout_spacer size='(10, -1)' /> 
    72                                 <bitmap> 
    73                                     <image name='test_image.jpg' /> 
    74                                 </bitmap> 
    75                             </layout> 
    76                             <layout_spacer size='(-1, 10)' /> 
    77                             <layout> 
    78                                 <list selection='2'> 
     142                                <choice selection='1'> 
    79143                                    Shane 
    80144                                    William 
    81145                                    Holloway 
    82                                 </list
    83                                 <layout_spacer size='(10, -1)' /> 
    84                                 <check_list selection='0'> 
     146                                </choice
     147                                <layout_spacer size='(-1, 10)' /> 
     148                                <combo value='new'> 
    85149                                    Shane 
    86150                                    William 
    87151                                    Holloway 
    88                                 </check_list> 
    89                                 <layout_spacer size='(10, -1)' /> 
    90                                 <layout> 
    91                                     <choice selection='1'> 
    92                                         Shane 
    93                                         William 
    94                                         Holloway 
    95                                     </choice> 
    96                                     <layout_spacer size='(-1, 10)' /> 
    97                                     <combo value='new'> 
    98                                         Shane 
    99                                         William 
    100                                         Holloway 
    101                                     </combo> 
    102                                 </layout> 
     152                                </combo> 
    103153                            </layout> 
    104154                        </layout> 
    105                     </panel> 
    106                 </layout> 
    107             </mdi_child_frame> 
     155                    </layout> 
     156                </panel> 
     157            </layout> 
     158        </mdi_child_frame> 
    108159 
    109             <mdi_child_frame title='Child' show='1'> 
    110                 <layout  sizerOption='1' sizerFlag='wxEXPAND'> 
    111                     <panel sizerOption='1' sizerFlag='wxEXPAND'> 
    112                         <layout> 
    113                             <styled_text sizerOption='1' sizerFlag='wxEXPAND'> 
    114                                 <py:inline> 
    115                                     from wxPython.stc import * 
    116                                     stc = self.parent().object 
    117                                     stc.SetLexer(wxSTC_LEX_XML) 
    118                                     stc.SetText(open('test.skin').read()) 
    119                                     stc.StyleClearAll() 
    120                                     stc.StyleSetSpec(wxSTC_H_DEFAULT, 'fore:#303030') 
    121                                     stc.StyleSetSpec(wxSTC_H_TAG, 'fore:#000080') 
    122                                     stc.StyleSetSpec(wxSTC_H_ATTRIBUTE, 'fore:#8080ff') 
    123                                     stc.StyleSetSpec(wxSTC_H_DOUBLESTRING, 'fore:#404080') 
    124                                     stc.StyleSetSpec(wxSTC_H_SINGLESTRING, 'fore:#404080') 
    125                                     stc.StyleSetSpec(wxSTC_H_COMMENT, 'back:#c0f0c0') 
    126                                 </py:inline> 
    127                             </styled_text> 
    128                         </layout> 
    129                     </panel> 
    130                 </layout> 
    131             </mdi_child_frame> 
     160        <mdi_child_frame title='Child' show='1'> 
     161            <layout  sizerOption='1' sizerFlag='wxEXPAND'> 
     162                <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     163                    <layout> 
     164                        <styled_text sizerOption='1' sizerFlag='wxEXPAND'> 
     165                            <py:inline> 
     166                                stc = self.parent().object 
     167                                stc.SetLexer(wxSTC_LEX_XML) 
     168                                stc.SetText(open('test.skin').read()) 
     169                                stc.StyleClearAll() 
     170                                stc.StyleSetSpec(wxSTC_H_DEFAULT, 'fore:#303030') 
     171                                stc.StyleSetSpec(wxSTC_H_TAG, 'fore:#000080') 
     172                                stc.StyleSetSpec(wxSTC_H_ATTRIBUTE, 'fore:#8080ff') 
     173                                stc.StyleSetSpec(wxSTC_H_DOUBLESTRING, 'fore:#404080') 
     174                                stc.StyleSetSpec(wxSTC_H_SINGLESTRING, 'fore:#404080') 
     175                                stc.StyleSetSpec(wxSTC_H_COMMENT, 'back:#c0f0c0') 
     176                            </py:inline> 
     177                        </styled_text> 
     178                    </layout> 
     179                </panel> 
     180            </layout> 
     181        </mdi_child_frame> 
    132182 
    133             <mdi_child_frame title='Child' show='1'> 
    134                 <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
    135                     <panel sizerOption='1' sizerFlag='wxEXPAND'> 
    136                         <layout> 
    137                             <bitmap><image name='maptest1.jpg' /></bitmap> 
    138                         </layout> 
    139                     </panel> 
    140                 </layout> 
    141             </mdi_child_frame> 
     183        <mdi_child_frame title='Child' show='1'> 
     184            <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
     185                <panel sizerOption='1' sizerFlag='wxEXPAND'> 
     186                    <layout> 
     187                        <bitmap><image name='maptest1.jpg' /></bitmap> 
     188                    </layout> 
     189                </panel> 
     190            </layout> 
     191        </mdi_child_frame> 
    142192 
    143         </mdi_parent_frame> 
    144     </application> 
     193    </mdi_parent_frame> 
    145194    <skin:reference> 
    146195        <py:inline> 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/status.html

    r157 r174  
    2222            <tr><td>wxPopupWindow<td>-<td>-<td>-<td>1 
    2323            <tr><td>wxPopupTransientWindow<td>-<td>-<td>-<td>1 
    24             <tr><td>wxSashWindow<td>-<td>-<td>1<td>- 
    25             <tr><td>wxSashLayoutWindow<td>-<td>-<td>1<td>- 
     24            <tr><td>wxSashWindow<td>1<td>-<td>-<td>- 
     25            <tr><td>wxSashLayoutWindow<td>1<td>-<td>-<td>- 
    2626            <tr><td>wxScrolledWindow<td>1<td>-<td>-<td>- 
    2727            <tr><td>wxSplitterWindow<td>1<td>-<td>-<td>- 
    28             <tr><td>wxDynamicSashWindow<td>-<td>-<td>1<td>- 
     28            <tr><td>wxDynamicSashWindow<td>1<td>-<td>-<td>- 
    2929            <tr><td>wxNotebook<td>1<td>-<td>-<td>- 
    3030            <tr><td>wxPanel<td>1<td>-<td>-<td>-