I am working on a django project where my database gets populated from a post call, and for quality of life, I want to be able to clear ALL of the data from the database at the click of a button. If it’s possible, I’d like to only use python, javascript, and HTML. I’ve done some searching on here and
Tag: button
How to change multiple buttons text using only one function, tkinter python
I would like to use only one function (self.toggle) for all of my buttons in my GUI instead of doing each for every button. I have tried to change name of self.button only without numbers and then I had text changing on just one button not the one required. Is there simple way to do just one function? I’m just
Python, Tkinter – Enable/Disable buttons only when a radio button is selected
So here’s my code What I’m trying to do is have the buttons enabled when the radio buttons are selected. Here’s what I tried. I believe this only sets it initially, and when I select a radio button or change it, it doesn’t update. I think I can use command inside the buttons but don’t understand how to go about
How do I make it so that when I click it changes the list
I have a list full of colors; I’m trying to make it so that when I click a button, it moves over one position in a list, thus changing the color of a shirt. How would I make it so that when I click the button it shifts to the next value? e.g. (I know this is wrong, but do
Tkinter function creates variable that can’t be added to list with .get() from entry
First off, I am aware that there are many questions out there with .get() not properly working and I have read through many of them. My issue is that my program has a button that every time it is pressed, it adds a new entry box for a new Player to be added, then I then want to create a
Finding button by XPath with Selenium
I have been trying to locate the following button using Selenium WebDriver: I used css selector, xpath, class and nothing seems to work (even by just copy pasting the one given by the inspector. The closest I’ve been is locating the div with the class _1ibtygfe) Here is everything I tried, I’m desperate I don’t understand why it does not
How can i click an button inside 2 divs in selenium python?
I’m trying to make selenium click Button1 but for some reasons, I get the following error: selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: Button1 I believe the error is happening because it is inside a div/ul/li tag but I can’t either figure out how to do it, I’m stuck. HTML: Python Code: Edit: I found out that the html is generated
Adding button (with variables) by pressing button – tkinter
I’m making a point of sale system and trying to implement a button, that when pressed a new button appears but also, a window which asks the user to input an Item *item6_qty and item6_price are declared near the beginning of the program This is what I have so far and although the window appears, I don’t think the variables
Change RGB of an Image using python
I’m trying to change the color of an image using RGB values in python, for example, if I want to change my image to grayscale I want to be able to manipulate the RGB values of the image. I’ve read that if I want my image in grayscale I would have to do something like Gray = (RedValue + GreenValue
Buttons in tkinter – When clicked: reveal something behind it
I am new to python and tkinter. I’m looking to make a simple window with a few buttons. When a button is pressed, I wish for it to disappear and instead reveal something behind it, a number, for instance. How do I go about doing this? Below is an example code which generates a window with a button. Can I