Python
Python is a higl level programming language.
You can use python for developing desktop gui applications, Websites and web applications.
Allows you to focus on the core functionality of the application
Created by Guido van Rossum and first released in 1991.
Is python the best programming language?
Python programs are typically 3-5times shorter then equivalent java programs.Python is
more productive language then java.
Almost everything said for java applied for C++,it is 5-10 times shorter then C++.
Python’s “object-based”subset is roughly equivalent to JavaScript.
Tcl,is weak on data structures and executes typical code much slower then python.
Gui Text Editor using Python
Introduction
Text editor gui using python text editor is an application like notepad to write documents
and other files.
The text editor is made using python Tkinter GUI interface.
Objective
Tkinter interface for text editor
Basic text editor task like cursor,line number
File handling to manage the text files
Different icons for cut,copy,info,find_text,new file,open file
Line number and column number display at the bottom
Components Of Text editor GUI
The application is built using python library Tkinter. For creating graphic user interface
(GUI) on python we need to use Tkinter library. We are also having different package and
approaches for creating GUI like QT for software development and Django, flask for web
app development. Here we choose Tkinter because it provides a very quick and easy way
to create basic GUI applications.
Steps follows the guide to create GUI
application using TK GUI toolkit
Install Tkinter package and Import Tkinter library
Create main application window for GUI
Add required widgets to GUI
Enter event loop to trigger action against every specified event
File Handling
To open and saves files, the project is using Python file handling system and its basic
method. The text editor offers functionalities like open,close,edit and create new files
using Python.
GUI
The user interface is developed using tkinter components
Grid
Toplevel
Messagebox
Mainloop
WorkFlow
Make a simple GUI through Python tkinter interface
Add a input box for the text editor files.
Add file handling functionalities for the text files that you can create like open,close,edit
a existing file and create a new file.
Add icon s or menus for this file handling options.
Make a interface to view line number and column number of the current cursor position
Features
Find and Replace-Text editors prpvides extensive facilities for searching and replacing
text,either on groups of files. Advanced editors can use regular expression to search and
edit text.
Cut,copy and paste-most text editors provide methods to duplicate and move text within
the file, or between files.
Run And Compile –It also run python code directly .
Conclusion
The main objective of the project is to develop a notepad like text editor using python.
In this we can copy,paste,edit,save the text and can also change the foreground and
background color.
Tkinter has a wide range of modules from which we used a few to develop our program
and make our GUI program effective.
I implement the desired code using Pycharm.
As the result the product has been developed in terms of extendability, portability and
maintainability and tested in order to meet requirement that are needed
Output
Output while running code
Gui Chat Box using socket
programming
Intoduction
Simple application of Socket programming
It also have graphical user interface
Maximum 5 client can connect with server at a time
Steps follows the guide to create GUI
application using TK GUI toolkit
Install Tkinter package and Import Tkinter library and Socket library
Firstly make client and server side code for chat box
Then Create main application window for GUI
Add required widgets to GUI
Enter event loop to trigger action against every specified event
Features
Simple application of socket programming
Simple and best application for learning the concept of socket programming
Simple graphical user friendly interface
Output