641 questions
Best practices
0
votes
0
replies
33
views
Trying to make it CTk, but STATE not working
I have this script in Tk and it works fine. I wanted to make it dark and ad hover options, so I changed it to CTk, but now it's not working. Can someone please help me fix this? I have both scripts ...
0
votes
3
answers
2k
views
anaconda install modules ttkbootstrap and/or Customtkinter
There is a way to install Customtkinter or ttkbootstrap in Anaconda environment?
I didn't find any useful links nor find such packages.
Thank you.
If not, there are some useful tkinter modules which ...
-2
votes
1
answer
73
views
CtkButton doesn't load images correctly
I have coded a python application for help me manage my works. For do this I need some buttons. I chose to use CustomTkinter because of the visual effect but mostly of the times the icons of the ...
2
votes
1
answer
56
views
How to make CTkTabview occupy the whole window?
I have an issue where my CTkTabview only takes up ~2/3 of the screen vertically.
class App(customtkinter.CTk):
def __init__(self):
super().__init__()
self.grid_columnconfigure(0, ...
-2
votes
2
answers
510
views
Python / tkinter: Binding right button click in an array of widgets
I am rendering an array of buttons onto the screen and want to implement a right-click function. I have left click working with the default "command=" option on the widget, but for some ...
1
vote
1
answer
57
views
Tkinter invokes wm command when window destroyed after CTkMessagebox used
My application uses CustomTkinter and reads data on start up:
import customtkinter as ctk
from CTkMessagebox import CTkMessagebox
class App(ctk.CTk):
def __init__(self) -> None:
super()....
3
votes
2
answers
226
views
Python Customtkinter code remains running after GUI window is closed
I'm new to coding/Python started a few weeks ago and am learning by creating a basic app with Customtkinter (for the aesthetic) on Pycharm. The app has 2 Customtkinter windows, a login window (class ...
0
votes
0
answers
73
views
Can't figure out customtkinter favicon
This is a simple application I'm making that organizes folder, but that part works fine. I'm make a GUi for it using custom tkinter and cant figure out how to set the favicon, whatever I do just does ...
0
votes
1
answer
60
views
Approaches To Optimize Nested For Loops and Dataframe Creation?
I am not very experienced with coding but I am creating a customtkinter application style script where a user can input a specific type of html that contains diagnostic addresses and various ...
0
votes
0
answers
61
views
filedialog doesn't return anything on second run
I'm working on a tkinter/customtkinter app to load data to MySQL. Below are the relevant classes. When I run this code to load a single file, I have no issues. The problem comes when I click self....
0
votes
1
answer
88
views
How to improve pack_forget() and pack() since they flicker the screen as widgets re-appear?
I have a small app using tkinter/customtkinter. When I click a drop down (CTkOptionMenu) it chooses a form to display and all other forms become hidden:
def show_selected_form(self, event):
...
1
vote
1
answer
55
views
CTk Text Snippet viewer - Can't pack in the right order
I am currently writing a little Text Adventure as a school project and am somewhat stuck on this problem.
Part of the setup needed:
self.frame = cTk.CTkFrame(self)
self.frame.place(...
0
votes
0
answers
58
views
Delay for displaying path in entry field after using filedialog from tkinter
I am working on my (in my eyes) first larger project. Until this moment I was writing only scripts up to 500 lines and I am creating an app for my team which is going to do some quality control so I ...
3
votes
1
answer
308
views
"check_dpi_scaling" and "click_animation" errors when switching GUIs
I have a program that does mass spec data reduction. The workflow is:
Present the user with a list of sequences, and ask them to select a sequence from the list.
Once a sequence of analyses has been ...
-1
votes
2
answers
59
views
Webbrowser Module Doesn't Work with Lists
I'm new(ish) to Python, and am trying to create a link manager software. I have ran into an issue in my code, however: apparently, the webbrowser module doesn't work with lists?
I tried doing simple ...
1
vote
2
answers
211
views
Aligning frames in tkinter python, (customtkinter)
I'm making an app in python, with the customtkinter library. I'm using the grid() widget manager. So far, I only have a few frames as the basic layout, but can't align them properly.
The issue is, ...
0
votes
1
answer
85
views
Creating a Custom class of Label and passing arguments from the main window with Custom TKinter and Python
I'm quite new to GUI and OOP, I really tried to figure out but I'm not able to find the solution.
I started a GUI project which started to be very messy very quickly. So I started to recreate from ...
1
vote
2
answers
1k
views
How Can I Apply Custom Corner Radius to an Image Inside a CTkFrame Using customtkinter in Python?
I'm currently working on a Python project using customtkinter, and I'm facing an issue with applying a custom corner radius to an image inside a CTkFrame. Here's a minimal example of my code:
import ...
0
votes
0
answers
186
views
CustomTkinter + pywebview
I was wondering if there is a way how to implement the rendered "webview" into customTkinter frame?
import customtkinter
import webview
from customtkinter import CTk, CTkFrame
def ...
0
votes
1
answer
112
views
Issue using app.overrideredirect(True) in my CustomTkinter application
I'm using app.overrideredirect(True) in my customtkinter application to create a custom title bar. However, the application doesn't appear in the Windows taskbar. When I click outside the app, it ...
1
vote
0
answers
30
views
CTkScrollableFrame incompatible with pywinstyles.set_opacity
When using pywinstyles.set_opacity on a button that was created in CustomTkinter, it causes the background to be "transparent", just like it is supposed to be.
However this only works when I ...
4
votes
4
answers
6k
views
How to make a window fullscreen in customtkinter?
Tkinter has this method:
window_name.attributes('-fullscreen',True)
and customtkinter?
I haven't found anything but
geometry(f"{WIDTH}x{HEIGHT}")
However when I grab screen size and put as ...
0
votes
0
answers
43
views
Insert HTMLLabel into CTKTextbox
Is it possible to include an html mailto link in a customtkinter textbox?
Whilst the below example provides the required text and the link to open the default email client separately, I would like to ...
0
votes
0
answers
88
views
'Autofit' Columns Width - Python
I'm trying to make a 'autofit' column width and the code below works really fine, but only if Im not in the tabview that the autofit occurs. Is there anyway to workaround this?
from tkinter import ttk,...
0
votes
1
answer
209
views
CustomTkinter with multiple tabs, frames and classes - get widget values
I have a ctk application with many widgets spread across multiple tabs and frames. The inputs are so extensive I would ultimately like the user to be able to save their entries to a named file and ...