I’m studying wxPython…
I live in Korea… Sorry I can’t speak English well…
I have question…wxHTML
This is my source… But not call html file…
···
import sys, os
import wxPython.lib.wxpTag
from wxPython.wx import *
from wxPython.html import *
ID_APPEND=100
class MainFrame(wxFrame):
def init(self,parent,log):
¸ÕÀú ºÎ¸ð Ŭ·¡½ºÀÇ »ý¼ºÀÚ ½ÇÇà
wxFrame.init(self,parent,-1,“IMAGE”,wxDefaultPosition,wxDefaultSize)
self.frame=frame
self.html=MyHtmlWindow(self,-1,log)
self.html.SetRelatedStatusBar(0)
self.printer=wxHtmlEasyPrinting()
#Àüü ÇÁ·¹ÀÓÀÇ Å©±â¸¦ Á¤ÇÑ´Ù.
self.SetSize(wxSize(285,447))
#ȸ鿡 ³ªÅ¸³ª°Ô ÇÑ´Ù.
self.Show(true)
¹ÙÅÁȸéÀ» Á¤ÇÑ´Ù.
self.SetBackgroundColour(wxColour(230,230,230))
Å׵θ® À̹ÌÁö¸¦ °¢°¢ÁöÁ¤ÇÑ´Ù.(¸ð¾çÀ» ²Ù¸çÁØ´Ù.)
bu= wxImage(“img/”+“bu.jpg”, wxBITMAP_TYPE_JPEG).ConvertToBitmap()
self.btnAppend = wxBitmapButton(self,ID_APPEND, bu, wxPoint(10,15), wxDefaultSize)
EVT_BUTTON(self,ID_APPEND,self.OnLeftClick)
def OnLeftClick(self ,event):
name=os.path.join(self,‘widgetTest.htm’)
self.html.LoadPage(name)
##################################################################################
¾îÇø®ÄÉÀÌ¼Ç ÇÁ·¡ÀÓ
##################################################################################
class MyApp(wxApp):
def OnInit(self):
À̹ÌÁö ºÒ·¯¿À´Â ºÎºÐ------
wxInitAllImageHandlers()
À̹ÌÁö ºÒ·¯¿À´Â ºÎºÐ³¡----
self.frame=MainFrame(NULL)
self.frame.Show(true)
self.SetTopWindow(self.frame)
return true
app=MyApp(0)
app.MainLoop()
¹Ì·¡´Â ÇöÀç¿¡ ÀÇÇØ ¾ò¾îÁø´Ù. ¿À´ÃÀº ¾îÁ¦ÀÇ ½ÃÀÛÀÌ´Ù
[Seung-ki , Park]
SoonChunHyang Univ. Electronics.
Mobile-phone : 011-9891-0492
MSN ID : queen116@netian.com
Home Page : http://devel.mailmada.com/~queen0116