ttk | Topological Data Analysis and Visualization - Source Code | Data Visualization library
kandi X-RAY | ttk Summary
kandi X-RAY | ttk Summary
Topological Data Analysis and Visualization.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ttk
ttk Key Features
ttk Examples and Code Snippets
Community Discussions
Trending Discussions on ttk
QUESTION
Current situation : I have one GUI program(written by python) which using sqlite data stored on my computer.
Wishlist: I would like to have one server computer to locate sqlite data (DATA A1) (CRUD operation needed) and ten more client computer using GUI program(written by python) which connect with the sqlite data (DATA A1) on lan.
I have no idea how to set up this program and server and what I need to learn more.
Current example code for check product in shop:
...ANSWER
Answered 2021-Jun-15 at 04:15Don't do that. Sqlite
is a simple, in-memory, single-process database. If you need a database server, then use a database server. There are many choices.
QUESTION
I am able to use SQLite3
as the database (DB) and get Treeview
to display data from the DB. However, I was wondering whether Treeview
has any functionality to censor the first few characters in a certain column for all entries?
Here is the lean code:
...ANSWER
Answered 2021-Jun-14 at 17:13You can make the substitution in the SQL query itself, by combining your desired prefix with a substring of the column, taken from the sixth character to the end.
Here's a pure Sqlite example:
QUESTION
For educational purpose I am using Python, Tkinter and Sqlite to create small prefabricated sentences, with small language templates like text.insert (tk.END, f "{City_Name} {is a city that owns} {Inhabitants} {inhabitants} {on a surface of} {Surface} "). The result should be (by way of example I remain the parentheses): {Paris} {is a city that owns} {2 229 095} {inhabitants} {on an area of} {105 km²}
The app starts with the selection of the Country in a combobox and then with the selection of the City in the combobox in the next combobox, for example "Paris", which in the database corresponds to City_Name. So the whole app focuses on city selection in the second combobox. So how can I retrieve from the row all the other data (Inhabitants, Name inhabitants, Surface, Language of the database) corresponding to "Paris", in order to automatically display them in the textobox, replacing them when requested?
To replace them when prompted automatically when prompted, I mean the curly brackets in text.insert, i.e. {Inhabitants}, {Surface}, etc.
IMPORTANT: In this way, I don't have to write the code for every single city, but I can write only one code that is valid for all the cities, because they automatically change {City_Name}, {Inhabitants}, {Surface}
P.S: I don't want to focus on a specific city, but obviously when you change the name of the city in the Combobox City, the data also changes (the row of data in the database), taking those corresponding to the selected city.
Can you please help me and show me the part of the code I need? Thank you
...ANSWER
Answered 2021-Jun-14 at 07:12What you can do is replace the function with this
QUESTION
I want to divide space equally between three buttons using Grid Layout in Tkinter. And those buttons should occupy the space equally even when the window is resized horizontally.
...ANSWER
Answered 2021-Jun-14 at 02:28Does this help?
QUESTION
So I have been trying to build a simple text editor with tkinter but unfortunately when I use the open() function in Python to open a specific file, an error shows up, saying 'TypeError: 'PhotoImage' object is not callable' on line 83. How is this even related to PhotoImage? Could it be possible that this is related to Image.open() ? Here's the code:
...ANSWER
Answered 2021-Jun-13 at 10:22The problem is you assigned the built in function open
as a variable to PhotoImage
. Now, when you call open
, it fetches the value of the open
variable because it's assigned a value. This will cause the error. That is why you should never use built-in functions as a variable. You can use open_img
or anything that is not a keyword, a built-in function, a function you have defined.
open = Photos(nm + '\open.png', 10, 10)
, this is a mistake
open_img = Photos(nm + '\open.png', 10, 10)
This would work .
Then updated the menu to
fileMenu.add_command(label='Open...', command=openfiles, image=open_img, compound='left')
QUESTION
I am new to Python. I'm having trouble executing an IF with a function inside. I enclose the code, including the graphic interface in Tkinter. In the same algorithm, I was wrong and i have difficulty in 2 things: write the correct IF conditions, and correctly call the Function inside IF, that is:
...ANSWER
Answered 2021-Jun-13 at 01:45You can do the IF checking inside phrase_example()
.
Also you need to use categoria.get() == ...
and sottocategoria.get() == ...
instead of categorias == ...
and sottocategorias == ...
:
QUESTION
Since I already have a code that I am attaching, how can I manipulate the text and do these two things?
- If I click on Button 1: in the vertical column "Word 1" of the database, is a random/casual word taken from among the various ones and then printed in the multiline textbox?
- If I click on Button 2: in the vertical column "Word 2" a random/casual word is taken from among the various ones, and also in the vertical column "Word 3" a random/casual word is taken from among the various ones. Then both words are combined/merged and printed in the multiline textbox in this example way (with space): "gggggg ooooooo" or "Hello world".
I'm just starting out with Python. Can you show me the code of the 2 questions I asked, please? Thank you and excuse me
...ANSWER
Answered 2021-Jun-12 at 06:10i am also beginner in tkinter
so i am just showing simple example to do it. command
in button take function name so you can assign function to button. i am creating two different function so whenever that button click that associate function execute . i am using cursor
and first text box text
as global that's why they are accessible in function and you can use inesrt
for inserting text . read documentation for better understanding
QUESTION
I ran the instructions from this question on stackoverflow. Credo di aver fatto tutto (o quasi) correttamente. I cannot understand what is wrong. No error in console/terminal. The problem is that the Combobox2 remains empty, after selecting the Combobox1.
Why does the combobox2 (City) remain empty, when I select a nation in combobox1 (Nation)? I would like the different names of each city for each selected nation to appear in combobox2 Thank you
...ANSWER
Answered 2021-Jun-12 at 03:02There are issues in your SQL statements:
QUESTION
I'm starting out with Tkinter in Python. I'm having a hard time doing a simple thing. There are two comboboxes. For example, selecting the text "" Test1 "in the first combobox Category, I would like Hello1", "Hello2", "Hello3" to open in the second combobox Subcategory.
Maybe I wrote the code wrong from the start. I would like to ask you 2 things:
Can you help me with my IF problem?
I think I haven't written the right code from the first line. Can you give me a system of all the code please? Fortunately it is not long Thank you
...
ANSWER
Answered 2021-Jun-10 at 09:09You need to trace the variable. You are basically doing procedural programming and python reads from top to button. But when you assign the value, and it goes to the if
statement, the value evaluates to False. Then the mainloop
is just the loop to show the window. Also, you can use a StringVar()
to get the values and detect any changes.
QUESTION
So I was messing around with the progressbar in ttk, but I was wondering how to change its length. Not like the numerical value of its length, but the actual visual length of the progressbar.
With other widgets, I would just to 'width=27' or whatever and change it that way, but it doesn't seem to work.
Any ideas? Thank you.
...ANSWER
Answered 2021-Jun-10 at 21:10To sum up from the comments:
ttk.Progressbar
does not have awidth
option unlike most widgets, but it has alength
option.Do not confuse
length
as the maximum value of the progressbar, it is just the width of the progressbar(by default in pixels).The maximum value of progressbar can be set using the
maximum
option.To get a list of properties a widget accepts you can use
().keys()
or if you want a detailed look ~.__init__.__docs__
will return the docstring of widget's__init__
(as TheLizzard said).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ttk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page