473,396 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Tix Tree / HList widget?

Hi,

I need to display some hierarchical data, and because I don't want to
force users to install too many things beyond Python itself, I'm hoping
to use Tix which is at least included with Python.

I've managed to use the Tix HList widget to display a tree of items (at
least in a proof-of-concept miniprogram) but I actually need to display
2 columns -- perhaps more.

I figured out that I can specify the number of columns and the headers
of the columns, but I haven't yet figured out how to set the values of
the columns independantly.

I tried using a tuple for the value of 'text' attribute, but that
doesn't really seem to work. My second column never seems to be filled
- all text goes into the first column.
Also, the header for the second column never shows.

I must be overlooking something rather basic in the manuals but for the
moment I'm stumped.

I'm also trying to figure out how to create a Tix 'Tree' widget instead
of a HList, and make it do the same, but I don't know how to pass it
the option for 2 columns: the 'Tree' widget refuses the option
'columns'. The samples in the Tix manual are for Tcl. I don't know how
to translate their samples into Python/TkInter. How should I tell the
Tix 'Tree' mega-widget that I need to pass an option to it's
sub-widget? (At creation-time of that sub-widget, because that's the
only time you can set the nr. of columns)

Any clues? Anyone who can help? Are there any samples -- there's
supposed to be a 'Demo' directory but I can't find it in my (windows)
Python installation.

Cheers,

--Tim

Jun 19 '06 #1
0 1485

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

Similar topics

2
by: Marco Terzuoli | last post by:
Hi, I would like to implement a tree control inside a Python application. It should be similar to GTK's TreeStore widget, but I need it for TKinter. Any ideas? thanks Marco
0
by: Wolfram Kraus | last post by:
Heyho! I want to associate objects with the nodes of a Tix.Tree. Is this possible, because the following example won't work: --8<-- Cut here ------------------------- import Tix class C:...
3
by: Sean McIlroy | last post by:
I'm looking for a widget, to be used with Tkinter, that displays a tree whose leaves are strings. I thought there was something like that in the Python Megawidgets, but when I look at the...
1
by: theoryboy | last post by:
I'm trying to implement multiple selection functionality in a Tix Hlist using a control-click. I've bound control-click to a function that uses selection_set to add to the selection, but it doesn't...
6
by: Edward C. Jones | last post by:
Do any of the Python GUIs have a super-high-level widget that displays a directory tree? Most file managers or editors have this type of window.
0
by: anil.pundoor | last post by:
hi iam using Tix tree widget in my python script. how can i delete the entire tree. i tried the following self.msgTree = Tix.Tree(self.msgWin) self.msgTree.hlist.delete() but it thorws the...
1
by: Sorin Schwimmer | last post by:
Hi, I tried for the first time a Tix Tree, so, if my question is naive, I apologize upfront. The following code: <code> from Tix import * r=Tk()
3
by: shotokan99 | last post by:
hi guys, my question is regarding yui tree menu. im a newbie and trying to take advantage of this rich library. my worry is about removeNode() or how to remove or delete a node on real-time....
0
by: ivan | last post by:
Hello, How do I move the keyboard cursor position in a Tix.HList? I am using an HList with the right mouse button bound to pop up a menu. If the right click is done on an unselected item, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
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,...

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.