button

Tkinter buttons resize, when longer text is displayed on them

Tkinter buttons resize, when longer text is displayed on them Question: I am making a program that can launch files and programs like a Stream Deck. After selecting the file I want to assign to a button, the button resizes due to the filename being wider than the placeholder text "Add". I couldn’t find any …

Total answers: 1

Calling py-script function from button-click with "pys-onClick=…" doesn't work?

Calling py-script function from button-click with "pys-onClick=…" doesn't work? Question: I’m relatively new to PyScript and would like to run a function when a button is clicked. However, no matter what code I try, it doesn’t seem to work. The button is clickable but doesn’t appear to do anything. When I call the function manually …

Total answers: 1

How to get out of a while loop using a button in matplotlib

How to get out of a while loop using a button in matplotlib Question: I’m trying to figure out how to get out of the while loop with a button, that’s all. This should work in my head, but all it does is that the first time you click it, the while loop starts, and …

Total answers: 1

The button does not become the color I need

The button does not become the color I need Question: I have a button that changes color when the cursor hovers over it, and I want to make it so that when the button is pressed, it leaves the color that it has when the cursor hovers over it. There are my unsuccessful attempts to …

Total answers: 1

Calling multiple functions which have multiple variables with one button. Self argument doesn't get recognized

Calling multiple functions which have multiple variables with one button. Self argument doesn't get recognized Question: I have to execute several functions with one button click. The functions have multiple variables. I think I’m pretty close to get it working but when I click the button the error TypeError: all_functions.function_1() missing 1 required positional argument: …

Total answers: 2

Image & Text button – no image appears – tkinter

Image & Text button – no image appears – tkinter Question: It’s my first post here, I also have a puzzlement about the code below. I don’t have the image displayed next to the text, the button is properly displayed (p.s : why the height and width have to be adjusted again, for example the …

Total answers: 1

I can't interact with button on discord.py

I can't interact with button on discord.py Question: I have a problem with my Discord bot. I made an embed and a button. They work properely but I can’t interact with button I made. I imported all 3rd party addons for this. When I try to interact, I got this error AttributeError: ‘Button’ object has …

Total answers: 1

How to scrape web-page with button/menuitems optionvalue?

How to scrape web-page with button/menuitems optionvalue? Question: In particular, I’am trying to scrape this web site I would like to setup the Button-menuitems on "50" rows per page: My Currently core is the follow: Select(WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//[@class=’btn btn-default dropdown-toggle’]")))).select_by_visible_text(’50’) where is my wrong? Can you help me ? Thank you in advance for youre …

Total answers: 3