随笔分类 -  python gui

摘要:# -*- coding: utf-8 -*- import os import subprocess import threading import time import tkinter from tkinter import TOP, LEFT, RIGHT, messagebox, file 阅读全文
posted @ 2023-07-22 23:54 NAVYSUMMER 阅读(25) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- import os import threading import time import tkinter from tkinter import TOP, LEFT, RIGHT, messagebox, filedialog, DISABLED, 阅读全文
posted @ 2023-07-22 16:10 NAVYSUMMER 阅读(19) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- import os import threading import tkinter from tkinter import LEFT, RIGHT, filedialog, messagebox, DISABLED, NORMAL, TOP impor 阅读全文
posted @ 2023-07-22 03:53 NAVYSUMMER 阅读(16) 评论(0) 推荐(0)
摘要:安装pyinstaller 如果使用了VirtualENV环境,则必须在要打包的项目环境中安装... 否则会找不到项目需求的包和模块 pip install -i https://pypi.douban.com/simple pyinstaller pyinstaller相关参数 -F : 打包成单 阅读全文
posted @ 2019-04-12 15:49 NAVYSUMMER 阅读(270) 评论(0) 推荐(0)
摘要:import tkinter as tk from tkinter import messagebox root = tk.Tk() def on_closing(): if messagebox.askokcancel("Quit", "Do you want to quit?"): root.destroy() root.protocol("WM_DELETE_... 阅读全文
posted @ 2019-04-03 14:31 NAVYSUMMER 阅读(2099) 评论(0) 推荐(0)
摘要:1.安装pyinstaller pip install pyinstaller 2.打包 打开cmd,切换到需要打包的文件(demo.py)目录。执行 pyinstaller -F -w demo.py。 生成的exe文件就在子目录dist中。-F表示指定打包后只生成一个exe格式的文件,-w表示窗 阅读全文
posted @ 2019-03-28 14:46 NAVYSUMMER 阅读(1696) 评论(0) 推荐(0)
摘要:from tkinter import * import os class PHP(object): """docstring for PHP""" def __init__(self,phpPath): super(PHP, self).__init__() self.phpPath = phpPath master = Tk(... 阅读全文
posted @ 2019-03-27 16:34 NAVYSUMMER 阅读(178) 评论(0) 推荐(0)
摘要:1、msgBox msgbox(msg='(Your message goes here)', title=' ', ok_button='OK', image=None, root=None) msgbox() 显示一个消息和提供一个"OK"按钮,你可以指定任意的消息和标题,你甚至可以重写"OK" 阅读全文
posted @ 2018-06-01 16:33 NAVYSUMMER 阅读(272) 评论(0) 推荐(0)

交流群 编程书籍