Esempio n. 1
0
 def OnInit(self):
     
     self.mainfrm = hzdqfrm.hzdqframe(parent = None)
     self.checkfile('unihan.dat')
     self.SetTopWindow(self.mainfrm)
     self.mainfrm.Show()
     return True
Esempio n. 2
0
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#   HZDQ(Hanzi Daquan) is a dictionary  contains all data from Unicode han database(Unihan),
#   which is a part of the latest Unicode version 5.2. You can find any format of 
#   Han ideographic script from this dictionary.
#    
#   modify history
#   date          author    notes
#   2010.1.26    ablozhou   release 0.5 OS:ubuntu 9.10 python:2.6.2
#
__appname__ = 'hzdq'
__author__ = 'ablozhou'
__email__='*****@*****.**'

import sys
import os
import wx
import mainui_xrc
import hzdqfrm

workpath = os.path.dirname(os.path.realpath(sys.argv[0])) 
os.chdir(workpath)
sys.path.insert(0, workpath)

#TODO 设置多行文本控件字体
#指定一个文件的另一个执行文件
if __name__ == '__main__':
    app = wx.PySimpleApp()
    frame = hzdqfrm.hzdqframe(parent = None)
    frame.Show()
    app.MainLoop()