Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2025 Feb 05 6:41 am)
After a little investigating, I think the only way to avoid the extra frame popping up is to start the Chooser dialog from a Tk app.
That said, the following example shows how the annoying Frame can be killed.
<pre style="background-color:rgb(0,0,0);">
Compare line in red to tkCommonDialog.py (rest of code is the same as Dialog.show from that file).
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
Don't know if it's clear... but here is what I want to do.
I have created a GUI with the internal Poser interface (using XML). I need to pick a color, so I use in my code:
import tkColorChooser
((red, green, blue),color) = tkColorChooser.askcolor()
But when I do this, it also open a little window with the title "Tk()". This window cannot be closed... Is there a way to use the tkColorChooser without opening this window ?