KyleTK Latest Posts

If you need to fire up a web server to serve some files but installing apache or nginx is overkill using a simple script to serve your files is arguably one of the best ways to do it. In this post I have a simple python script that will serve a directory of files on your system via HTTP. I typica... 

When creating web pages it is often helpful in your design to add an element of the page hidden and reveal it when a button is clicked or some other event happens. In this post I am going to be showing you in a very simple example how to take an HTML element and toggle it between hidden and not h... 

In this post I will be showing you how to add, remove, and check for class attributes in Python. Base Code For this article I will be using the class below as our class we are going to be adding and removing attributes from. Taking a quick look through this code we can see that it has 2 str... 

The groups that a user belongs to in an operating system are a very flexible way of managing users on a system weather that be restricting permissions or extending functionality because of the fundemental importance of groups and group permissions in the Linux operating system after a short time ... 

I wanted to write this article to hopefully save someone else the trouble and hassle myself and my team has gone through working with Liebert UPS webcard configuration files. If you are working with Liebert UPS web cards and want to modify the configuration file and re upload them to help automa... 

In the Video I go through writing the code below which will add a notebook widget inside of your main window which will allow you to make tabs in your interface. The majority of the code is configuring the window itself, there is only about 6 lines that actually make the tabs which when I learne... 

A virtual environment can be extremely useful when developing multiple projects that require different dependencies, developing across multiple computers, and making it easier to collaborate with others on projects. In this post I will be outlining what exactly a virtual environment is and how to... 

In this post I will be outlining the Tkinter Entry widget and the various ways you can use it. The Entry widget is often used to display or enter a line of text and is a standard Tkinter widget so you will not need to install anything special to your Python environment to use it. Below is the ba... 

When writing CLI based applications in Python there often comes a time where you are running a loop and it may take a minute or 2 to complete your loop and break out, if the user is sitting and waiting for the task to complete they may become impatient and try to restart the program because it ap... 

You should take every effort to not use any programming logic within your Jinja templates but there are times where you have no choice and the best of the bad options you have available to you is to give Jinja access to a python function to grab data out of the database or do some other tasks. In... 

1 2
Search