原创 wxPython的event處理機制

自己的理解,這個framework的event處理應該是這樣的: wx.app這個類及其子類實現底層的main event loop, 真正的event分發(dispatch),處理(handle)是在自己寫的frame(wigit)中,

原创 A simple wxPython example

# -*- coding: utf-8 -*-import wxclass MyApp(wx.App): def OnInit(self):  frame = MyFrame(u"關於窗口的測試程序",(50,100),(450,340)

原创 wxpython的native event和event

native system event s are translated to wx.Event instances and then giving to the method wx.EvtHandler.ProcessEvent() f

原创 wxpython notmal shutdown process

if all window close ?     N,  continue live     Y, next if SetExitonFrameDelete()==True?     Y, exit      N,next is wx.

原创 wxpython的重定向到log輸出窗口

#coding=utf-8import sysimport wx class Frame(wx.Frame): def __init__(self,parent,id,title):  print u"Frame 初始化,調用 __ini

原创 用python輸出中文

只要有這三個就可以了: 1。在程序頭包含: # -*- coding: utf-8 -*- 2。保存的時候,存成utf-8格式,因爲python內部用的是unicode編碼,而且最好是保存是把bom標誌去掉。 3。用到中文字符時這樣用:

原创 一個關於手機快速開發模型的想法

如果能有這麼個軟件/假手機,它只提供mmi,這個mmi要非常的易於修改,用於項目初期客戶和開發人員確定手機的基本菜單和顯示。 這樣就好了,  

原创 0508

記錄一下最近要看的何正在看的資料: 1,wxPython in action 看了一半了。 2,Dive into python 5.4好書! 3,linux內核設計與實現 (第二版) 4,系分的書,系統分析師技術指南。 5,系分歷年的基

原创 配置svn時遇到錯誤 Invalid command 'DAV', (解決)

LoadModule dav_module modules/mod_dav.so 這一行的註釋去掉,原因如下: You aren't loading mod_dav. mod_dav_svn just implements the bac

原创 python 的 * 和 @

maillist的相關討論,轉在這裏備查: On 2/28/06, 照亮你的世界的我的頭(老陳頭) <[email protected]> wrote:> python編程金典裏沒見到這種語法,呵呵,能否說一下下:>  1.func(*ar

原创 關於mvc

mvc patter: Model :business logic Contains all the data manipulated by the system. This can include an interface to an

原创 關於refactor的幾個原則

如果你的程序中有以下的情況,那麼是該考慮重構了:1.       No duplication.        儘量避免函數或功能模塊的冗餘,除非是在類似嵌入式應用這種特殊的情況下,不過真正需要這樣做的情

原创 關於php中的數組操作

程序中有這麼一段:fuction user($userid =0){    if ($userid) {       $tepsql = tep_db_query("select * from user w

原创 osCommerce 理解 (1)

tep_db_fetch_array() 返回一個對mysql_fetch_array()的包裝 mysql_fetch_array()函數: -從結果中取得一行作爲關聯數組,或數字數組,或二者兼有。 -mysql_fetch_array

原创 星網銳捷通訊5800UB貓的linux驅動,繼續解決

好久了,一直沒有一段完整的時間來靜下心來解決這個問題,今天有看了幾個文章,再試一下,懷疑是我的firmware沒有的問題,一下是鏈接:http://blog.sina.com.cn/u/4143bc9101