Changeset 16163 for lang/python
- Timestamp:
- 07/24/08 12:11:57 (4 months ago)
- Location:
- lang/python/crochet
- Files:
-
- 1 added
- 2 modified
-
chat.py (modified) (3 diffs)
-
chat.xrc (modified) (3 diffs)
-
chat_allsrc.py (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/python/crochet/chat.py
r15856 r16163 1 #!/ opt/local/bin/python1 #!/usr/bin/env python 2 2 # -*- coding: utf-8 -*- 3 3 … … 102 102 label.SetLabel(self.dataList[selectedRow][1]) 103 103 104 #画像データ 104 105 def SetNowTime2StatusBar(self): 105 106 #現在時刻を表示 … … 108 109 sb = wx.GetApp().GetTopWindow().GetStatusBar() 109 110 sb.SetStatusText(nowtime+u"に更新しました") 110 111 112 #@binder(wx.EVT_KEY_DOWN, id=XRCID('MainFrame')) 113 def myKeyHandler(self,evt): 114 print 'a' 115 if evt.GetKeyCode() in [ord('q'), ord('Q')]: 116 wx.Exit() 117 111 118 112 119 # startup application. 113 120 if __name__=='__main__': 114 121 app = wx.App(False) 115 wx_utils.XrcInit()122 #wx_utils.XrcInit() 116 123 frame = MainFrame() 124 frame.Bind(wx.EVT_KEY_DOWN, myKeyHandler) 117 125 app.SetTopWindow(frame) 118 126 frame.Show() -
lang/python/crochet/chat.xrc
r15856 r16163 3 3 <object class="wxFrame" name="MainFrame"> 4 4 <title>crochet</title> 5 <style> </style>5 <style>wxWANTS_CHARS</style> 6 6 <object class="wxSplitterWindow"> 7 7 <orientation>horizontal</orientation> … … 9 9 <object class="notebookpage"> 10 10 <label>Recent</label> 11 <object class="wxPanel" >11 <object class="wxPanel" name="ID_TWIT_PANEL_RECENT"> 12 12 <object class="wxBoxSizer"> 13 13 <orient>wxVERTICAL</orient> 14 14 <object class="sizeritem"> 15 15 <object class="wxListCtrl" name="ID_TWITLIST"> 16 <style>wxLC_REPORT|wxLC_HRULES </style>16 <style>wxLC_REPORT|wxLC_HRULES|wxWANTS_CHARS</style> 17 17 </object> 18 18 <option>1</option> … … 20 20 </object> 21 21 </object> 22 <style>wxWANTS_CHARS</style> 22 23 </object> 23 24 </object>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)