To Python form (tkinter) tree data (Treeview) details
As shown below:
import tkinter from tkinter import ttk #Import internal packages win=() tree=(win) #Parameters:parent, index, iid=None, **kw (parent, insertion position, id, text to show) myid=("",0,"sino",text="China.",values=("1")) # "" indicates that the parent node is the root myidx1=(myid,0,"Guangdong",text="Guangdong, China",values=("2")) # text means the text that is shown, values are the hidden values. myidx2=(myid,1,"Jiangsu.",text="Jiangsu, China",values=("3")) myidy=("",1,"United States of America",text="USA USA",values=("4")) myidy1=(myidy,0,"California.",text="California, USA.",values=("5")) () ()
The above this on Python Forms (tkinter) Treeview data (Treeview) details is all I have to share with you, I hope to be able to give you a reference, and I hope you will support me more.
Related articles
Python handles merged cells based on the xlrd module
This article introduces the Python xlrd module based on the merger of cell processing, the text through the sample code is very detailed, for everyone's learning or work has a certain reference to the learning value, the need for friends can refer to the following2020-07-07A collection of Python methods for representing the current time.
Getting the current time in Python is a good starting point for many time-related operations. One very important use case is creating timestamps. In this tutorial, you'll learn how to get, display, and format the current time using the datetime module2023-01-01An introduction to Django learning the difference between migrates and makemigrations
This article introduces the Django learning migrate and makemigrations of the difference, with some reference value, need friends can refer to the following2018-01-01Python parsing command line read parameters of the argparse module
This article introduces the Python analyze the command line to read the parameters of the argparse module, the text of the sample code through the introduction of the very detailed, for everyone to learn or work with a certain reference to the value of learning, the need for friends below along with the editorial to learn together!2019-07-07About python cross-domain handling in detail
This article is about python cross-domain processing methods explained, with good reference value, I hope to help you. Follow the editor over to take a look at it2020-03-03On closures in Python in detail
Hello, this article is mainly about Python closures in detail, interested students feel quickly take a look at it, if it helps you remember to collect it!2022-01-01Python PIL implementation of the GIF compression tool
This article will combine wxPython's GUI framework and PIL (Python Imaging Library) image processing capabilities to write a GIF compression tool , and provides two compression methods , interested partners can learn about the2024-10-107 Useful Python Automation Codes to Stop Building Wheels Over and Over Again
Python has a famous saying: do not repeat the wheel, to share with you after Python3.6.4 debugging through the code, interested friends follow the editor to see it!2023-11-11What does % mean in Python and how is percent sign used in python?
Recently in the process of learning python, found a % of some of the situation, here is a brief introduction,,need friends can refer to the following2018-03-03python selenium anti-detection problem
This article introduces the python selenium anti-detection problem, has a good reference value, I hope to help you, if there is an error or not fully consider the place, hope not to give advice!2023-09-09