473,809 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WxPython wxTreeCtrl with HTML labels

Hello,

I am looking for any pointers on creating a Tree control which can
render html snippets as labels.

On each leaf of the tree I want to show text, but with more formatting
than is allowed with the standard wxTreeCtrl. I have expermented with
wxTreeListCtrl but it does not give the flexibility of html.

Would it be possible to derive from wxTreeCtrl or wxTreeLayout? Or
would it be simpler to use a number of ctrls and make it look like on
single tree?

Any comments greatly appreciated.

Thanks

Brendan
Jul 18 '05 #1
0 1201

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1207
by: Geiregat Jonas | last post by:
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):
0
1230
by: Geiregat Jonas | last post by:
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):
1
2312
by: frank | last post by:
need help with wxpython. wxpython code is made with boa-constructor when i run the code i get this error message: Traceback (most recent call last): File "wxApp1.py", line 24, in ? main() File "wxApp1.py", line 20, in main application = BoaApp(0)
1
2219
by: Piet | last post by:
Hi there. I have a problem when working with a wxTreeCtrl. I would like to expand all branches of a sepcific position in a tree with a single command. Since there does not appear to be such a command, I tried to write my own recursive function. Here is the code snippet: def OnPopup1(self,event): item = self.Tree.GetSelection() self.parent.msgbox(self,self.Tree.GetItemText(item),"Kein Titel",wxOK) #self.Tree.Expand(item)
1
7090
by: matthiasjanes | last post by:
dear all, I just need a little help. could anyone give real code example (simple) how to read the value of a grid cell. i could not figure it out and really would like to do a simple spreadsheet application in wxpython (my first try with wxpython gui)
0
1609
by: danielpm72 | last post by:
Hi, I want to read a wxTreeCtrl from the root since I want to store all the information in it in a python dictionary. I know that the methods I have to use are ItemHasChildren, GetFirstChild and GetNextChild and I have been success in getting the first node in this manner: while child.IsOk(): print wx.TreeCtrl.GetItemText ( self, child ) if wx.TreeCtrl.ItemHasChildren ( self, child ):
6
2761
by: rbann11 | last post by:
Hi, I am looking for example code that consists of just a frame and a grid(10x2). The grid must fill the its parent even if the frame is resized. Thanks in advance, Roger
3
2729
by: Jordan | last post by:
Hey Peoples, I'm wonderg if there is a way to make a subclass of wx.grid.Grid in which the coloumn labels for the grid appear on the bottom of the grid instead of the top. 1 2 3 4 5 a| | | | | | b| | | | | | c| | | | | | d| | | | | |
3
1121
by: Gandalf | last post by:
I try to reach a specific wx StaticText element's text and to change it by clicking on a button now let's say the this is my element: wx.StaticText(panel, 15, "Hello" ,(30, 70) , style=wx.ALIGN_CENTRE) And this is my EVT_BUTTON bind function :
0
10637
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10379
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10115
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.