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

Home Posts Topics Members FAQ

wxTreeCtrl Q?

Hi,

it is possible to change the font (bold, underline, italic) in the text
used in a wxTreeCtrl?
I looked in the wxPython demo but I can't find anything.

Any help much appreciated.

Kris

Feb 1 '06 #1
1 1416
I hope this can help:

http://wxwidgets.org/manuals/2.6.1/w...trlsetitemfont
http://wxwidgets.org/manuals/2.6.1/w...trlsetitembold

This pages are from the wxwidgets api reference but the functions are
the same in wxPython

Bye

Ale

Feb 1 '06 #2

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
2245
by: Krzysztof Kaczkowski | last post by:
Hello Im having problem, my class inherit in wxTreeItemData. (Python2.3 i wxPython2.4.1.2u) class MyTreeItemData (wxTreeItemData): def __init__(self, name): wxTreeItemData.__init__(self) self.name_key = name def TEST(): pass
1
1723
by: Krzysztof Kaczkowski | last post by:
Hello Im having problem, wxTreeCtrl generate 3 x EVT_TREE_SEL_CHANGED on click item right button mouse. This problem only win32. Why? Simple example: from wxPython.wx import * class MyApp(wxApp): def OnInit(self):
0
1201
by: Brendan | last post by:
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
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)
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 ):
4
1847
by: maxgross | last post by:
Hi everyone, ive got a problem with polymorphism. When i compile the code an error occures: error: 'class QtElement' has no member named 'DisplayQtElement' I asked my friends and nobody could help me, all said it has to work. I work with wxWidgets 2.6.3 under Linux.
0
949
by: eC | last post by:
I use a tree control in my application and was hoping to use use the GetItemText method to read the new label of the tree item after the user has edited it. So in the EVT_TREE_END_LABEL_EDIT event handler, i call this method but the old label (previous value before the edti) is returned. Is there something else i have to do or is this a bug?
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
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...
0
9199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
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.
3
3014
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.