Michael ArdanA super-simple Web-based CLI in Python (not only good for online text adventures)There is no other way than going web-based to deliver your Python-Code to a broader audience. But: What is the most simple method to make…Feb 9, 2021Feb 9, 2021
Michael ArdanEasy Python: Best Structure for a Tkinter Application GUITo create a GUI in Pyhton Tkinter is an easy choice as the module can be seen an the standard for windows, buttons and even graphics…Aug 28, 2020Aug 28, 2020
Michael ArdanOOP with Python: Proper Inheritance with & without Super and InitThis one if for Object-Orientation-Beginners! Let us assume you create a class for four-corner-two-dimensional-things:Aug 27, 2020Aug 27, 2020
Michael ArdanCool Python: Track all Instances of a Class easily — evenUsually python-programmers keep created instances of a class in a list. That is good, but not necessarily needed. There is an easy way to…Aug 25, 2020Aug 25, 2020
Michael ArdanGood Pyhton: The Pythonic way to handle Empty listsAs a more classic programmer or if you new to Python (coming from other languages) you might look for empty lists like this:Aug 21, 2020Aug 21, 2020
Michael ArdanTKinter Collision Detection on Canvas made simple!Well, you can do the math or you can use buildin abilities of TKinter to check if objects touch each other. Though the TKinter abilities…Aug 12, 2020Aug 12, 2020
Michael ArdanPragmatic Python: Save a line and do NOT write else:The lazy programmer can save one line per if-statement inside a function, if the return statement occurs inside the if indentation block…Aug 11, 2020Aug 11, 2020
Michael ArdanPowerful Python: Keep your code clean with CallbacksThe big questions for clean code: how NOT to call another function in a function? Err…. Callbacks make this possible! It is an easy…Aug 10, 2020Aug 10, 2020
Michael ArdanCool Python: The Two-Way-Converter — auto-detect function-inputThis is clearly against all Pyhton Programming Paradigms, but it is so damn comfortable: Usually you write two converting functions — one…Aug 10, 2020Aug 10, 2020
Michael ArdanCool Python: Execute Code on Variable Change — Simple ObserverBefore you dive too deep into OOP-patterns: There is a really simple way to bind the change of a variable (inside a class / instance) with…Aug 7, 2020Aug 7, 2020