PySimpleGUI
PySimpleGUI
There's no parameter to choose a starting color for the color chooser button at the moment. What color is initially chosen is up to tkinter. I suppose it may be...
When coding it up, it'll be a parameter that's part of the call (initial_color). This provides the most flexibility. I'm focusing on Qt at the moment and stopping adding features...
Another option and I think there's a demo for it, is to create your own color chooser dialog. It won't be as fancy as some color dialogs, but you'll be...
As recently explained, the architecture is moving away from "Chooser Buttons" and to popups. They are more flexible in what a user can do and don't suffer some of the...
> I have learned it is better to call: > > newColor = tkinter.colorchooser.askcolor(parent=window, color=values[field])[1] Very nice! This is exactly what a "popup_get_color" function would do. The basic design behind...
New parameter `default_color` added to the `ColorChooserButton` Hers's a test harness to demonstrate options: ```python import PySimpleGUI as sg layout = [ [sg.Text('Color Chooser Test')], [sg.Input(key='-COLOR1-'), sg.ColorChooserButton('Color')], [sg.Input(key='-COLOR2-'), sg.ColorChooserButton('Color', default_color='blue')],...
I'll also add a special `popup_get_color_no_window()` that is an abbreviated version of `popup_get_color()`. This will enable users to invoke the tkinter dialog without directly calling tkinter. It will enable more...
> Thank you, PysimpleGUI (Mike??? right?), I am glad that ColorChooserbutton is being enhanced. Yea, i'ts "mike"... It made sense to enhance the button. I often have to take a...
I doubt I would take that specific approach for the ColorChooserButton. It'll get moved to a popup with a no_window option and that's where you would be able to change...
Here's an example of how to do what you're after @horstjens ```python import PySimpleGUI as sg layout = [ [sg.Text('Choose a color....')], [sg.Input(key='-COLOR-'), sg.ColorChooserButton('Choose Color', target='-COLOR-', default_color='blue', key='-CHOOSER BUTTON-')], [sg.Button('Go'),...