Changeset 42

Show
Ignore:
Timestamp:
02/26/02 18:44:25 (7 years ago)
Author:
sholloway
Message:

Goodies!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBPrivate/Prototypes/ChatClient/client.skin

    r41 r42  
    22<skin:skin xmlns:skin='http://namespaces.runeblade.com/skin' xmlns:py='http://namespaces.runeblade.com/xmlPython' xmlns='http://namespaces.runeblade.com/wxPythonSkin'> 
    33    <application> 
    4         <frame title='RuneBlade Chat Client' show='1'> 
    5             <menu_bar> 
    6                 <menu text='File'> 
    7                     <menu_item text="Item 1" /> 
    8                     <menu_item text="Item 2" /> 
    9                 </menu> 
    10                 <menu text='Edit'> 
    11                     <menu_item text="Item 1" /> 
    12                     <menu_item text="Item 2" /> 
    13                 </menu> 
    14                 <menu text='View'> 
    15                     <menu_item text="Item 1" /> 
    16                     <menu_item text="Item 2" /> 
    17                 </menu> 
    18                 <menu text='System'> 
    19                     <menu_item text="Add Contact" /> 
    20                     <menu_item text="Remove Contact" /> 
    21                 </menu> 
    22                 <menu text='Help'> 
    23                     <menu_item text="Item 1" /> 
    24                     <menu_item text="Item 2" /> 
    25                 </menu> 
    26             </menu_bar> 
    27  
    28             <layout sizerFit='1' sizerOption='1' sizerFlag='wxEXPAND'> 
    29                 <layout sizerOption='1' sizerFlag='wxEXPAND'> 
    30                     <notebook size='(350, 500)' sizerOption='1' sizerFlag='wxEXPAND'> 
    31                         <column_list pagename='Chat' bgcolor='(250, 250, 255)' columns='"Contact", "Status"' style='wxLC_NO_HEADER' /> 
    32                         <column_list pagename='Group Chat' bgcolor='(250, 255, 250)' columns='"Chat Room"' style='wxLC_NO_HEADER' /> 
    33                         <styled_text pagename='System Messages' bgcolor='(255, 250, 250)'> 
    34                             <py:inline> 
    35                                 from wxPython.stc import * 
    36                                 stc = self.parent().object 
    37                                 stc.SetLexer(wxSTC_LEX_PYTHON) 
    38                                 stc.SetText(open('client.py').read()) 
    39                                 stc.StyleClearAll() 
    40                                 stc.StyleSetSpec(wxSTC_P_DEFAULT, 'face:Courier New,fore:#000000,size:9') 
    41                                 stc.StyleSetSpec(wxSTC_P_COMMENTLINE, 'face:Times New Roman,fore:#000000,back:#FFFF00,italic,size:10') 
    42                                 stc.StyleSetSpec(wxSTC_P_IDENTIFIER, 'face:Courier New,fore:#0000CC,bold,size:9') 
    43                                 stc.StyleSetSpec(wxSTC_P_STRING, 'face:Courier New,fore:#CC0000,size:9') 
    44                                 stc.StyleSetSpec(wxSTC_P_CHARACTER, 'face:Courier New,fore:#CC0000,size:9') 
    45                             </py:inline> 
    46                         </styled_text> 
    47                     </notebook> 
    48                 </layout> 
    49             </layout> 
    50  
    51             <status_bar fields='2'/> 
    52         </frame> 
     4        <skin:reference>MainFrame.skin</skin:reference> 
     5        <skin:reference>ChatFrame.skin</skin:reference> 
     6        <skin:reference>GroupChatFrame.skin</skin:reference> 
    537    </application> 
    548</skin:skin> 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/bitmap.py

    r16 r42  
    2929        kwSettings['bitmap'] = apply(wx.wxEmptyBitmap, kwSettings['size']) 
    3030        self.object = apply(wx.wxStaticBitmap, (winParent, ), kwSettings) 
    31         self.wxSetColors() 
     31        self.wxSetStandardOptions() 
    3232 
    3333    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/bitmap_button.py

    r16 r42  
    2929        kwSettings['bitmap'] = apply(wx.wxEmptyBitmap, kwSettings['size']) 
    3030        self.object = apply(wx.wxBitmapButton, (winParent, ), kwSettings) 
    31         self.wxSetColors() 
     31        self.wxSetStandardOptions() 
    3232 
    3333    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/button.py

    r16 r42  
    2929        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'label']) 
    3030        self.object = apply(wx.wxButton, (winParent,), kwSettings) 
    31         self.wxSetColors() 
     31        self.wxSetStandardOptions() 
    3232 
    3333    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/check.py

    r16 r42  
    3131        self.object = apply(wx.wxCheckBox, (winParent,), kwSettings) 
    3232        self.object.SetValue(self.wxEval('value')) 
    33         self.wxSetColors() 
     33        self.wxSetStandardOptions() 
    3434 
    3535    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/check_list.py

    r16 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size', 'choices'], ['name']) 
    3131        self.object = apply(wx.wxCheckListBox, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333 
    3434    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/choice.py

    r16 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size', 'choices'], ['name']) 
    3131        self.object = apply(wx.wxChoice, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333 
    3434    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/column_list.py

    r20 r42  
    3636            else: self.object.InsertColumn(idx, each) 
    3737            idx += 1 
    38         self.wxSetColors() 
     38        self.wxSetStandardOptions() 
    3939 
    4040    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/combo.py

    r16 r42  
    3131        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size', 'choices'], ['name']) 
    3232        self.object = apply(wx.wxComboBox, (winParent,), kwSettings) 
    33         self.wxSetColors() 
     33        self.wxSetStandardOptions() 
    3434 
    3535    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/frame.py

    r23 r42  
    3333        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'title']) 
    3434        self.object = apply(wx.wxFrame, (winParent,), kwSettings) 
    35         self.wxSetColors() 
     35        self.wxSetStandardOptions() 
    3636 
    3737        self.context.frame = self.object 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/glcanvas.py

    r26 r42  
    2929        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name']) 
    3030        self.object = apply(wxGLCanvas, (winParent,), kwSettings) 
    31         self.wxSetColors() 
     31        self.wxSetStandardOptions() 
    3232        self.AddToLayout() 
    3333 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/input.py

    r16 r42  
    3030        kwSettings['value'] = kwSettings['value'] or ''.join(self.Content()) 
    3131        self.object = apply(wx.wxTextCtrl, (winParent, ), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333 
    3434    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/label.py

    r16 r42  
    2828        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'label']) 
    2929        self.object = apply(wx.wxStaticText, (winParent,), kwSettings) 
    30         self.wxSetColors() 
     30        self.wxSetStandardOptions() 
    3131 
    3232    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/line.py

    r24 r42  
    2828        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name']) 
    2929        self.object = apply(wx.wxStaticLine, (winParent,), kwSettings) 
    30         self.wxSetColors() 
     30        self.wxSetStandardOptions() 
    3131 
    3232    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/list.py

    r16 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size', 'choices'], ['name']) 
    3131        self.object = apply(wx.wxListBox, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333 
    3434    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/mdi_child_frame.py

    r23 r42  
    3232        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'title']) 
    3333        self.object = apply(wx.wxMDIChildFrame, (winParent,), kwSettings) 
    34         self.wxSetColors() 
     34        self.wxSetStandardOptions() 
    3535 
    3636        self.context.frame = self.object 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/mdi_parent_frame.py

    r23 r42  
    3333        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'title']) 
    3434        self.object = apply(wx.wxMDIParentFrame, (winParent,), kwSettings) 
    35         self.wxSetColors() 
     35        self.wxSetStandardOptions() 
    3636 
    3737        self.context.frame = self.object 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/mini_frame.py

    r23 r42  
    3232        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'title']) 
    3333        self.object = apply(wx.wxMiniFrame, (winParent,), kwSettings) 
    34         self.wxSetColors() 
     34        self.wxSetStandardOptions() 
    3535 
    3636        self.context.frame = self.object 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/notebook.py

    r26 r42  
    2828        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name']) 
    2929        self.object = apply(wx.wxNotebook, (winParent,), kwSettings) 
    30         self.wxSetColors() 
     30        self.wxSetStandardOptions() 
    3131        self.AddToLayout() 
    3232 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/panel.py

    r23 r42  
    2828        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name']) 
    2929        self.object = apply(wx.wxPanel, (winParent,), kwSettings) 
    30         self.wxSetColors() 
     30        self.wxSetStandardOptions() 
    3131        self.AddToLayout() 
    3232 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust_filling.py

    r36 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size', 'rootObject'], []) 
    3131        self.object = apply(filling.Filling, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333 
    3434    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust_shell.py

    r20 r42  
    3131        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size', 'locals'], ['introText']) 
    3232        self.object = apply(shell.Shell, (winParent,), kwSettings) 
    33         self.wxSetColors() 
     33        self.wxSetStandardOptions() 
    3434 
    3535    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/radio.py

    r16 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'label']) 
    3131        self.object = apply(wx.wxRadioButton, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333        self.object.SetValue(self.wxEval('value')) 
    3434 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/slider.py

    r16 r42  
    3333        del kwSettings['pos'] 
    3434        self.object = apply(wx.wxSlider, (winParent,), kwSettings) 
    35         self.wxSetColors() 
     35        self.wxSetStandardOptions() 
    3636 
    3737    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/splitter.py

    r26 r42  
    3333        del kwSettings['pos'] 
    3434        self.object = apply(wx.wxSplitterWindow, (winParent,), kwSettings) 
    35         self.wxSetColors() 
     35        self.wxSetStandardOptions() 
    3636        self.AddToLayout() 
    3737 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/styled_text.py

    r17 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name']) 
    3131        self.object = apply(stc.wxStyledTextCtrl, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333 
    3434    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/toggle_button.py

    r16 r42  
    3030        kwSettings = self.wxSettingDict(['id', 'style', 'pos', 'size'], ['name', 'label']) 
    3131        self.object = apply(wx.wxToggleButton, (winParent,), kwSettings) 
    32         self.wxSetColors() 
     32        self.wxSetStandardOptions() 
    3333        self.object.SetValue(self.wxEval('value')) 
    3434 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/tree.py

    r20 r42  
    3232        indent = self.wxEval('indent') 
    3333        if indent >= 0: self.object.SetIndent(indent) 
    34         self.wxSetColors() 
     34        self.wxSetStandardOptions() 
    3535 
    3636    def SkinFinalize(self): 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/wxSkinObject.py

    r21 r42  
    4444        return None 
    4545 
    46     def wxSetColors(self): 
     46    def wxSetStandardOptions(self): 
    4747        if 'fgcolor' in self.settings: 
    4848            self.object.SetForegroundColour(wxColorEval(self.settings['fgcolor'])) 
    4949        if 'bgcolor' in self.settings: 
    5050            self.object.SetBackgroundColour(wxColorEval(self.settings['bgcolor'])) 
     51        if 'tooltip' in self.settings: 
     52            self.object.SetToolTipString(self.settings['tooltip']) 
    5153 
    5254    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~