The use of Wingide
A good tool can make you do things with less effort! This is particularly noticeable in the process of writing code, using Pyhton to write programs for more than a year! Various types of editor IDE also use a lot of, such as Pycharm,sublime,qtcreator, and so on, recently began to use wingide, found very handy to use, and support the current mainstream operating system! This blog post is used to record summary, some useful experienc
The code is as follows:
#!/usr/bin/env python#-*-Coding:utf-8-*-#=============================================================================# FileName:# Desc:# Author:toughguy# version:0.0.1# lastchange:2013-02-20 14:52:11# History:#=============================================================================
From Tkinter Import *Import Tkmessagebox,tkfiledialogImport Platform
# NL = os.linesep
Def openfile (): Global filename # is declared as a
After installing the Wing IDE editor, you will see a small square when typing in Chinese, or it is not possible to display Chinese by default. At this point we need to modify the default font for the editor.Here's how to fix it:The workaround is to locate the pango.aliases file.Example: C:\Program files\wing IDE 4.1\bin\gtk-bin\etc\pango DirectoryEdit pango.aliases can be opened with Notepad, or you can choose any code
Ulipad is a very useful Python editor, of course, many friends with vim or gedit can, see personal habits.
First, download the Ulipad 4.1 compressed file http://down.51cto.com/data/630118
Unzip to the/tmp/directory
cd/tmp/ulipad/
ls--> See ulipad.py file
Enter Python ulipad.py, note that it is best to use command line completion, otherwise prone
You want to make a simple Python script editor where the text input Code section is implemented using the text control in Tkinter.But the question is, how do you achieve highlighting? Refer to Python's own editor: code in the Python27/vidle folder.The implementation effect Is:One of the main ideas is that in text every input line of code, all through regular matc
Vundle, required""Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)"All of your Plugins must is added before the following lineCall Vundle#End () "RequiredFileType plugin indent on"RequiredThis allows you to complete the setup before using Vundle. After that, you can add the plugin you want to install in the configuration file, and then open the Vim editor and run the following command::P LugininstallThis command
Many people say that Vim is the best code Editor, regardless of the language, but with Python exceptions, the Python shell comes with a code editor.How to use:
Open the Python shell:
Click File-->new File (alt-f-n) to bring up a new window, write codeYou can see the typing print (and then it has a function hint
│├──virtualenv│└──yasnippet├──eshell└──pde├──contrib├──doc├──templates├──tools└ ──tree-widget23 DirectoriesWith the above configuration, our programming environment for Perl and Python is well configured. With a good programming environment, the use of it makes people comfortable. Let's take a look at the editing effect and how it works:The editing effect is:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/72/30/wKiom1Xeh0ajAZKhAAfmOyFB3Fo73
Why should I use vim to edit the py file?
Because Ide,vim is the best text editor in the Linux command line, the lack of a graphical interface configures vim for better editing of the py text.
1. Install the full version of Vim
What is the difference between VI and VIM?
In Linux with the VI editor, and VIM is the VI improved, that is, vi upgrade version. The difference is that VI instructions and functi
tools have been installed, we can add to the Desktop toolbar, and then easy to start every time it is convenient. If we use the Ubuntu version does not have no way to add, you can do this kind of operation.
Five, set up the Pycharm the Quick Start way
Run sudo gedit/usr/share/applications/pycharm.desktop
And then add in the text that pops up:
The code is as follows
Copy Code
[Desktop Entry]
Type=application
selection box select the first, click OK to continue, then the back screen we will default. Create a project need to enter a password, we set a password.In this way, our Pycharm tool has been installed and we can add it to the Desktop toolbar and make it easy to start every time you need it. If the Ubuntu version we use does not have a way to add it, you can do so.Five, set the Pycharm Quick Start modeRun sudo gedit/usr/share/applications/pycharm.desktopThen add it in the text that pops up:
CKeditor can be used in the background article editor when a website is built using Flask. CKeditor supports many text styles and is open-source, here, let's take a look at the CKeditor tutorial integrated with CKeditor rich text editor in the Python Flask framework. CKeditor is currently one of the best visible web editor
notepad++ 7.2.2 and Sublime Text--Tao Xinnotepad++ 7.2.2Notepad++ is a very special editor, open source software, free to use. Supported languages: C, C + +, Java, C #, XML, HTML, PHP, javascript!: https://notepad-plus-plus.org/Sublime TextSublime Text is very good code Editor, the interface settings are very user-friendly, the left is the code thumbnail, the right is the code area, you can easily locate th
From sourcePython forces indentation, using the TAB key and spaces, but not mixed. Mixing tabs and spaces results in an error: Indentationerror:unindent does not match any outer indentation level. If your editor doesn't visualize spaces and tabs, it's crazy to change.PEP8 recommends using spaces to indent. Because different editors, the IDE handles the TAB key differently, some widths are 4, and some are 8.Configure the following to modify the configu
The example in this paper describes how Python implements a simple text editor based on the Tkinter library. Share to everyone for your reference. The implementation method is as follows:
# # {{http://code.activestate.com/recipes/578568/(r1) from Tkinter Import * from Tksimpledialog import Askstringfrom TkF Iledialog Import asksaveasfilenamefrom tkmessagebox Import Askokcancel class Quitter (Frame): Def __
Pydev actually when the eclipse plugin1. Install Eclipse(1) Eclipse does not need to install, unzip folder, click Eclipse.exe to use2, Installation Pydev(1) Decompression Pydev can see features and plugins two directories, and then copy the contents of the two directories to ecplise corresponding directory(2) Then ecplise Configure the installed Pydev plug-in:Ecplise->window->prefrences->pydev->interpreters->python Interpreter(3) then select NEW:Inter
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.