Python provides lot of GUI(graphical user interface) frameworks/toolkits. Most of the GUI toolkit are wrapper to the existing GUI components provided by native framework or OS (operating system). Few such widely GUI frameworks are Tkinter, wxPython, PyQt, and PyGame. Here will wrap up advantages and disadvantages of Tkinter and wxPython. #Tkinter: From portability point of view Tkinter is winner compared to wxPython. Pros: Part of python, nothing extra to download. Very simple syntax. The text widget is remarkably powerful and very easy to work with. The canvas widget is also very easy and powerful. No other toolkit provides the same mix of ease and power than those two widgets in my experience. Uses native widgets on the mac and windows. Tcl/Tk (Tool
Author: mayuri takle
Python’s role in developing real time embedded systems
Python isn't only the most-popular language for introductory CS programs, it's also the fastest-growing language for embedded computing. Maybe that sounds silly when you scan the numbers again and realize it's the fastest-growing language of the remaining 5% of embedded systems code that aren't C/C+ +, but Python will start eating into C/C++'s monopoly even more over the next few years. Python might be at its strongest when used as a communication middleman between the user and the embedded system they're working with. Sending messages through Python to or from an embedded system allows the user to automate testing. Python scripts can put the system into different states, set configurations, and test all sorts of real-world use cases.
Python Socket Programming – Server, Client Example
Socket is the endpoint of a bidirectional communications channel between server and client. Sockets may communicate within a process, between processes on the same machine, or between processes on different machines. For any communication with a remote program, we have to connect through a socket port. steps: Python socket server program executes at first and wait for any requestPython socket client program will initiate the conversation at first.Then server program will response accordingly to client requests.Client program will terminate if user enters “bye” message. Server program will also terminate when client program terminates, this is optional and we can keep server program running indefinitely or terminate with some specific command in client request. We can obtain host address by using socket.gethostname() function. It