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()# 30个字符宽 2行my_text = Text(root, width=30, he...
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()v.set(2) # 如果1,那么儒家被默认选中#...
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-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 """ 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-10-1 @Blog : www.cnblogs.com/xingchuxin @GitHub : github.com/GratefulHeartCoder """ from tkinter import *def main():root = Tk()v = IntVar()v.set(3) # 如果1,那么儒家被默认选中#...
我一直在尝试向pygtk的进度栏添加取消按钮,但是现在可以使用该功能了.该功能的作用是执行和编写脚本,输出中的每一行都对其进行计数,并将其添加到progressBar中.我的问题是如何取消该子流程,有办法吗?def stop(self, widget):print "cancelar"os.killpg(self.p.pid, signal.SIGTERM) #=> not workingself.p.kill() #=> not workingcount = 0 command = "script.sh" self.p = subprocess.Popen(command, shell=True, bufsize=0, std...