Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > wxPython Probleme

Reply
Thread Tools

wxPython Probleme

 
 
Geiregat Jonas
Guest
Posts: n/a
 
      07-22-2003
Hey,
here's my piece of code :

class HtmlWindow(wxHtmlWindow):
def __init__(self,parent,id):
wxHtmlWindow.__init__(self,parent,id)


class channelTree(wxTreeCtrl):
def __init__(self,parent,id):
wxTreeCtrl.__init__(self,parent,id)
self.root = self.AddRoot("Sites")
for i in range(len(names)):
self.AppendItem(self.root,names[i])
EVT_TREE_SEL_CHANGED(self,105,self.OnCelChanged)

def OnCelChanged(self,event):
item = event.GetItem()
print self.GetItemText(item)

class MainSplitter(wxSplitterWindow):
def __init__(self,parent,id):
wxSplitterWindow.__init__(self,parent,id)
self.html = HtmlWindow(self,-1)
self.html.LoadPage("welcome.html")
self.SplitHorizontally(self.html,wxWindow(self,-1),500)
self.Show(1)


If you look at the channelTree class I've created a wxTreeCtrl when you
change a sel a execute onCelChanged Now I would like that when you
change a sel he loads an other page into the HtmlWindow. But I don't
really have an idea on how to do this any help ?







 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[wxPython-users] Web based applications are possible with wxPython? Ruben Charles Python 6 10-25-2005 09:41 PM
wxPython - wx package (new style wxPython?) Logan Python 5 12-11-2003 04:12 PM
[PY GUI] interest function in python GUI(wxpython,pyqt) program.wxpython,pyqt ulysses Python 4 10-22-2003 03:28 PM
wxPython looses function "wxPython.wx.miscc" Anand Python 1 07-23-2003 01:59 AM



Advertisments