Comments (6)
Hi,
So the problem basically is that you are not meant to create multiple tkinter.Tk
instances (for multi-window apps, use a tkinter.Toplevel
), and therefore sv-ttk
doesn't account for that scenario. For more info, see: #72
from sun-valley-ttk-theme.
I would normally use classes etc but I have to use functions and put that in open/destroy (a project for studies and it's a constraint)
So no alternative ?
from sun-valley-ttk-theme.
You can actually pass in the window you want the theme to be applied on with the root
argument. It should work that way.
from sun-valley-ttk-theme.
So the main frame is for example defined as root
If I open the f1 frame (an other frame defined after), the frame will use the root theme?
from sun-valley-ttk-theme.
If you create another tkinter.Tk
instance, it will not automatically use the theme, but you can pass it to the set_theme
function like so: sv_ttk.use_dark_theme(root=root2)
. And that way it will not give an error.
from sun-valley-ttk-theme.
This doesn't work for me. I'm going to use my "bidouillage", I only need to display the dark theme and I work with that.
But thanks for the help which I appreciate
from sun-valley-ttk-theme.
Related Issues (20)
- Pixelated/dithered widgets issue. HOT 7
- Create website and docs
- File selection box unreadable on X11 with dark ttk theme HOT 5
- [Question]: How did you make a dark theme toggle? Was it a widget or an image button? HOT 2
- Optimize tile sizes for Windows and macOS
- Remove `set_theme` function hack
- Improve font detection
- Menubar colour HOT 1
- Remove four black dots at the corners of the button HOT 4
- How to add the switch?? HOT 1
- Problem withdraw() deiconify()
- Make a script to export individual SVGs HOT 6
- Tcl App: `unknown color name "$colors(-selfg)"` HOT 3
- How do I modify this? HOT 1
- Theme/style not applied to Toplevel Widget HOT 2
- ```window.option_add("*font", ...)``` doesn't effect some buttons HOT 19
- Is there anyway to make the button show the icon's color? HOT 4
- Add hack HOT 3
- module 'tkinter' has no attribute '_get_default_root' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sun-valley-ttk-theme.