Changeset 16163 for lang/python

Show
Ignore:
Timestamp:
07/24/08 12:11:57 (4 months ago)
Author:
showyou
Message:

crochet update chat_allsrc.py

Location:
lang/python/crochet
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • lang/python/crochet/chat.py

    r15856 r16163  
    1 #!/opt/local/bin/python 
     1#!/usr/bin/env python 
    22# -*- coding: utf-8 -*- 
    33 
     
    102102                label.SetLabel(self.dataList[selectedRow][1]) 
    103103 
     104                #画像データ 
    104105        def SetNowTime2StatusBar(self): 
    105106                #現在時刻を表示 
     
    108109                sb = wx.GetApp().GetTopWindow().GetStatusBar() 
    109110                sb.SetStatusText(nowtime+u"に更新しました") 
    110                  
     111 
     112#@binder(wx.EVT_KEY_DOWN, id=XRCID('MainFrame')) 
     113def myKeyHandler(self,evt): 
     114        print 'a' 
     115        if evt.GetKeyCode() in [ord('q'), ord('Q')]: 
     116                wx.Exit() 
     117 
    111118 
    112119# startup application. 
    113120if __name__=='__main__': 
    114121        app = wx.App(False) 
    115         wx_utils.XrcInit() 
     122        #wx_utils.XrcInit() 
    116123        frame = MainFrame() 
     124        frame.Bind(wx.EVT_KEY_DOWN, myKeyHandler) 
    117125        app.SetTopWindow(frame) 
    118126        frame.Show() 
  • lang/python/crochet/chat.xrc

    r15856 r16163  
    33  <object class="wxFrame" name="MainFrame"> 
    44    <title>crochet</title> 
    5     <style></style> 
     5    <style>wxWANTS_CHARS</style> 
    66    <object class="wxSplitterWindow"> 
    77      <orientation>horizontal</orientation> 
     
    99        <object class="notebookpage"> 
    1010          <label>Recent</label> 
    11           <object class="wxPanel"> 
     11          <object class="wxPanel" name="ID_TWIT_PANEL_RECENT"> 
    1212            <object class="wxBoxSizer"> 
    1313              <orient>wxVERTICAL</orient> 
    1414              <object class="sizeritem"> 
    1515                <object class="wxListCtrl" name="ID_TWITLIST"> 
    16                   <style>wxLC_REPORT|wxLC_HRULES</style> 
     16                  <style>wxLC_REPORT|wxLC_HRULES|wxWANTS_CHARS</style> 
    1717                </object> 
    1818                <option>1</option> 
     
    2020              </object> 
    2121            </object> 
     22            <style>wxWANTS_CHARS</style> 
    2223          </object> 
    2324        </object>