button

How can I adjust 2 plot with one button in matplotlib

How can I adjust 2 plot with one button in matplotlib Question: I’m just studying Python for a month and have no experience. I’m trying to hide/show two graphs with one Check button in matplotlib. But with my code, when clicking the button, there is only one graph hidden. Please see my code and show …

Total answers: 1

Image not showing in tkinter button

Image not showing in tkinter button Question: I created a button with an image in Tkinter, but the image isn’t showing, i can just see a blank space in the button. Maybe my OS is the problem. I have Linux Mint 21 Xfce Edition. from tkinter import ttk from tkinter import filedialog from tkinter import …

Total answers: 1

How to Combine a Slider with a Drop Down for Plotly Choropleth?

How to Combine a Slider with a Drop Down for Plotly Choropleth? Question: How do I combine a slider and button/drop down in a choropleth to work correctly? I am trying to create a choropleth of US states where the colors represent median home sale price for a given date, slider, and property type, drop …

Total answers: 1

tkinter label and button grid placing

tkinter label and button grid placing Question: i have created window, in that window i put frame. Then i want to create two labels after them button widget. But, button widget appears upper than second label widget even though i put btn in row=2, and label2 in row=1. It ‘s hard for me to get …

Total answers: 1

How To Minimize Window Using Python/PySimpleGUI

How To Minimize Window Using Python/PySimpleGUI Question: Dears, How To Minimize Window Using Python/PySimpleGUI ? Knowing that , I want to hide existing title bar from my Window and add my personal icons :Maximize, Minimize and Close, it’s OK for 2 and not the case for Minimize. I followed answer shared in : How to …

Total answers: 1

how to add a button within a button on tkinter?

how to add a button within a button on tkinter? Question: i have a button in grid, and it already has one command, which just prints text. However i want a button to pop up as well as the text. so long story short, i’m just trying to add a button within a button. (multiple …

Total answers: 1

How do you set functions for a button, on Tkinter?

How do you set functions for a button, on Tkinter? Question: my function wont carry out for the button assigned. Im using visual studio code. For the def myClick(): myLabel =Label(window, text …, command… it wont occur. on visual studio code, the ‘myLabel’ greys out and has the error ‘is not accessedPylance’ # add response …

Total answers: 4

How would I dynamically update buttons in PYSimpleGUI

How would I dynamically update buttons in PYSimpleGUI Question: I am trying to create a looping text based "choose your own adventure" story game. The code is built into separate functions. Each function has a story element (returned in text format), a selection of player choices used for updating the text on the buttons (returned …

Total answers: 2

pysimplegui popup button_justification problem

pysimplegui popup button_justification problem Question: According to the documentation of PySimpleGUI, the popup element should have an argument called button_justification, which position the button in ‘right’ or ‘left’, or ‘center’ within the popup window. When i added button_justification=’center’ to the popup element in my project it raised the error: popup() got an unexpected keyword argument …

Total answers: 1