Questions tagged [ttkbootstrap]

Tooling and libraries for theming TKinter applications. Use this tag for questions about programming with ttkbootstrap.

33 questions
0
votes
0 answers

ttkbootstrap got an unexpected keyword argument 'themes_file' , why?

I always used this as part of my tkinter app without any issues: # STYLE settings themefile = os.path.dirname(sys.argv[0]) s = Style(theme="finaltb", themes_file=f"{themefile}\\tbtheme.json") s.configure("TEntry", relief="flat",…
exec85
  • 447
  • 1
  • 5
  • 21
0
votes
0 answers

Importing ttkbootstrap leads to bad screen distance error when setting up scrollregion

Im trying to implement a zoomable and scrollable canvas (from Tkinter canvas zoom + move/pan) into my existing ttkbootstrap application. When zooming outwards the program sometimes results in a bad screen distance error when the scrollregion is…
Ole Bleß
  • 1
  • 2
0
votes
0 answers

ttkbootstrap buttone image not display

I want to use ttkbootstrap to add an image to a button. However, the PNG image is not visible. What could be the problem with the code below? Thanks a lot. import ttkbootstrap as tkb from pathlib import Path from ttkbootstrap.constants import…
0
votes
1 answer

Consecutive mainloop calls malfunctioning in ttkbootstrap

I was trying to design an application that gets the user input for connecting to the data base. After connecting to the database the application then gets the table that user has created based on some parameters. This has been implemented in an OO…
user350331
  • 111
  • 3
0
votes
1 answer

grid_forget() not working with classes acting as Frames

Right so, I have been making this goofy clock app in order to further my skills in programming, especially by adding an object oriented approach. I have defined a main menu of which is under main() but I use classes to act as Frames for the…
0
votes
0 answers

How to dynamicly change the number of objects with scale in ttkbootstrap

update the number of objects using a scale prisoners_num_frame = ttk.Frame(setting_frame, bootstyle=LIGHT) ttk.Label(prisoners_num_frame, text="# of prisoners", font=(DEFAULT_FONT, DEFAULT_FONT_SIZE), …
0
votes
0 answers

I have 2 bootstrap Comboboxes. I want the second Combobox to update based on the selection from the first Combobox, but can't seem to get it to work

When selecting the customer from the first Combobox, I want the second Combobox to update with the projects tied to that customer, but the second combobox always contains the items from projects1 and never updates when i select a new customer in…
0
votes
1 answer

Change the content of a ttkbootstrap ScrolledFrame

How do I replace the content of a ttkbootstrap ScrolledFrame? I have built the scrolled frame with this snippet: for ndx, t in enumerate(sorted(tw, key=lambda x: x.created_at, reverse=True)): print(t.created_at) card…
user2302244
  • 843
  • 2
  • 11
  • 27
0
votes
1 answer

Tkinter/Ttkbootstrap Font Size After Theme Change

I'm probably just missing something obvious here but I've tried everything I know of. In my application, the user can change the theme by selecting it from a Combobox, and the theme changes. The unwanted behavior is that the font size also changes…
blaufer
  • 117
  • 1
  • 3
  • 11
0
votes
0 answers

Is there a better way to update Tkinter text widget when using image_create?

This code works fine and does exactly what I want but in the larger application that it is used in, when loading a new PDF or using the zoom in/zoom out buttons, the frame flickers not nearly as quickly as I would like or at all if possible.…
blaufer
  • 117
  • 1
  • 3
  • 11
0
votes
0 answers

Font differences in tkinter & matplotlib

I am using Tkinter for a GUI in which is also show Matplotlib graphs. I am trying to align the way how text looks between Tkinter (e.g. Label) and Matplotlib (e.g. graph title, axis labels). To try it out I have set both to Arial with the following…
Jay
  • 59
  • 6
0
votes
0 answers

ttkbootstrap - Not able to add button inside a tableview module

I have created a table in ttkbootstrap using tableview module but I also want to add a button in each row so that user can click on that button to edit the data in that row. But there seems to be no way to add a button inside a table. Anyone know…
DeltaView
  • 1
  • 1
0
votes
0 answers

ttkbootstrap - When more than 10 columns are added in tableview widget, they become out of order

When I add more than 10 columns in tableview they become out of order. It works fine if number of columns are less than 10. Anyone know how to fix that. Bug - ttkbootstrap bug Added more than 10 columns, now 10th column is shown after 2nd, then 11th…
DeltaView
  • 1
  • 1
0
votes
2 answers

Cx_freeze converted executable is not working for ttkbootstrap scripts

After converting my ttkbootstrap project file into exe by using cx_freeze. When I run the executable file. I get this error and my program does not execute. File…
0
votes
1 answer

How do I update my meter widget (python, ttkbootstrap) using the results I've gathered from a pyspeedtest?

I am trying to update my meter widget with the results of a ping test using pyspeedtest, but I keep getting the error: "TypeError: Meter.configure() missing 1 required positional argument: 'self'" The ping function works without any issues, I just…