Skip to content

Tag: python

Django: how to write django signal to update field in django?

i want to write a simple django signal that would automatically change the status of a field from live to finished, when i check a button completed. I have a model that looks like this when i check the won button that is in the PredictionData model, i want to immediately changes the status of the Prediction t…

using if else while declaring a variable

I’m writing a script to sent proxies file from a directory to telegram channel. With the help of some good folks I was able to complete it almost Issues occurred what I’m trying is to send those 3 proxy files with a caption to the first proxy file Answer with the help of some good folks I make it …

How to make a scrollable listbox? tkinter python

I want to create a listbox with an auto hiding scrollbar. I’ve been searching and found a class example; when I play around with it, the scrollbar doesn’t stayed attached to the right side as expected. This is the code: This is the first view when I run the code: When I expand the window the scrol…