Debugging is an integral part of any software development process. Once I write some piece of code, my following action is running the application for making sure that it works correctly. Often running once is not enough for testing all the cases and often I find some bugs which enforce me to find what is wrong, fixing the bug and then testing again. This process can repeat several times until reaching the required outcome.
The process of debugging can be very slow in cases where each execution of the application takes a lot of time. One trick I usually use…
Normally we create a GUI window with wxPython by putting all the required visual components inside a wx.Panel object and positioning them using sizers such as wx.BoxSizer. Usually each window (or “frame” according to the wxPython terminology) contains a single main panel. But how can we create several main panels with different GUI layouts for the same window and switch between them dynamically?
Serialization in Python is very easy. Here is how to do it
Serialization is the process of converting an object into a stream of bytes to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. The reverse process is called deserialization.
Pickle is a standard library of Python allowing serializing any Python object into a binary string or into a binary file. It also allows recreate a new object from the a serialized data.
This tutorial describes how to transfer a Python environment from one Windows 10 computer into another Windows 10 computer. The packaged Python environment which is created this way, can be used on any Windows 10 computer where Python isn’t already installed and can be used for building an installation file for a Python application
This tutorial requires that you use Anaconda or Miniconda Python distribution.
Anaconda is a free and open-source distribution of the Python programming language (and also R programming language) for scientific computing, that aims to simplify package management and deployment. Miniconda is a smaller version of Anaconda…
Software developer & architect. CTO at MedDev Soft