'Advertising on a tkinter program

My question is : is it possible to put ads on a tkinter program , something like google ads or something , because I made a program which a lot of people started using and I am not getting any benefits from it , is there a way ?



Solution 1:[1]

As kind of stated in other answers you could possibly do something like this:

import webbrowser

#Activate when user clicks a button that does something else on your program
webbrowser.open("link-to-site-with-ads")

This way if you owned the target site every time the user presses a button on your program that needs to be pressed to do something it opens. Another way could be to make it as soon as the program runs it will execute (this may be better as it would frustrate users less). Hope this helps any other people looking at this question.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Michael Duffett