代码是如下, 我就不给你添注释了啊:!/usr/bin/env python3.4from Tkinter import *import parserroot = Tk()root.title('Calculator')i = 0def factorial(): """Calculates the factorial of the number entered.""" whole_string = display.get() number = int(whole_string) ...
可以参考这个:from tkinter import *from time import time, localtime, strftimeclass ToolTip( Toplevel ): """ Provides a ToolTip widget for Tkinter. To apply a ToolTip to any Tkinter widget, simply pass the widget to the ToolTip constructor """ def __init__( ...
先将需要打包的程序,我用自己的Tkint.py文件(自己python文件名字自己修改),把它复制到步骤1的目录下,也就是上面的C:\pyinstaller-develop然后使用命令:pyinstaller -F Tkint.py(建议使用)注意:如果运行的是gui类型程序,你不需要弹出命令窗口,你可以采用:pyinstaller -F -w文件名.py 之后你的...