Skip to content

Add color filter to Tk.Label

I have a tk.Label object with an image (via tk.Label(self.root,image=’image.png’)) and want to add a color filter to it, i.e. make the image more red. How can I do that? Answer You can modify the image with PIL, and save it as a new file. In Tkinter, you can use PhotoImage(file=”file.png&#82…

desktop notifications in service

I wrote a python program that get messages from server and invokes windows notification. I turned the program into a one file executable using pyinstaller, the program works perfect when running as an app. when I turned it into a service on windows 10 using nssm.exe, the service still works well(listen & …

Pandas, drop duplicates but merge certain columns

I’m looking for a way to drop duplicate rows based one a certain column subset, but merge some data, so it does not get removed. Parcel Res Bill Year 001 Henry 4,100 1995 002 Nick 2,300 1990 003 Paul 5,200 2008 003 Bill 4,000 2008 Some pseudo code would look something like this: Parcel Res Bill Year 001…