Posts

Showing posts from July, 2017

Create a gist using Python

My default editor is Gvim. How to new a gist in Gvim? Before I start , I have to plan something. Use Python script to create a gist. Because Python is my favorite programming script.  Integrate the script with Gvim. So I try to write a script to implement step one. It's work. 😀 If you want to try this script by yourself. You have to generate a token first. Go to your Github settings. Select the " Personal Access Tokens " in the left side nav panel. Click the Generate new token button then check the gist checkbox. Click the green Generate token button to get a token code.

Python Tkinter Go

Image
Introduction TKinter is a simple GUI library for Python. It can create desktop program easily using Python. Environment: Python 3.6.0 Windows 10 Error: ModuleNotFoundError: No module named 'Tkinter' In Python 3.6.0 you will name Tkinter as tkinter. Test: In the Python prompt you can test by this command: >>> import tkinter >>> tkinter._test() It will show a test window. Example: 1. Simple window 2. Radio button test 3. Understand Grid Geometry # File : Grid Geometry Test Reference: Tkinter Grid Tkinter Widget