python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk() # 注意Tk的大小写# \n用于换行text_label = Label(r...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdown普通布局 code """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk() # 注意Tk的大小写text_label = Label(root...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdown左右布局 code """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()group1 = LabelFrame(root, text='服器部', ...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-9-30 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()w = Canvas(root,width=200,height=200,background="w...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-9-30 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()w = Canvas(root,width=200,height=200,background="w...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()v = IntVar() # 特殊的int# 通过这个v可以反映出是否...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()hobby = ['儒', '释', '道']for each in hobby:cb = C...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()e = Entry(root)e.grid(row=0, column=1,padx=10, pad...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()# e输入框显示字符串:木芙蓉def _show():e.insert(0, ...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def test(content, reason, name):# 光标失去时,这个函数就会执行print(cont...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()password = StringVar()# 密码输入,输入字符显示 * 符...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ import tkinter as tkclass APP:def __init__(self, master):# 自动选定大小与位置self.frame = tk....
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ import tkinter as tk# 面向对象的编程思想 class APP:def __init__(self, master):# 自动选定大小与...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ import tkinter as tk# 面向对象的编程思想 class APP:def __init__(self, master):self.frame = tk...
python : 3.7.0 OS : Ubuntu 18.04.1 LTS IDE : PyCharm 2018.2.4 conda : 4.5.11 type setting : Markdowncode """ @Author : 行初心 @Date : 18-9-30 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()w = Canvas(root,width=200,height=200,background="w...