• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Xujie_0528

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页

2020年9月25日

Python24-07_画图项目----画笔&橡皮擦
摘要: 画笔&橡皮擦 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor='#00 阅读全文
posted @ 2020-09-25 17:04 Xujie_0528 阅读(637) 评论(0) 推荐(0)
 
Python24-06_画图项目----箭头直线&矩形绘制
摘要: 箭头直线&矩形绘制 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor=' 阅读全文
posted @ 2020-09-25 16:46 Xujie_0528 阅读(830) 评论(0) 推荐(0)
 
Python24-05_画图项目----绘制直线
摘要: 绘制直线 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor='#0000 阅读全文
posted @ 2020-09-25 15:40 Xujie_0528 阅读(925) 评论(0) 推荐(0)
 
Python24-04_画图项目----界面实现
摘要: 画图项目-界面实现 1 from tkinter import * 2 3 win_width = 900 4 win_height = 500 5 6 7 class Application(Frame): 8 9 def __init__(self, master=None, bgcolor=' 阅读全文
posted @ 2020-09-25 11:18 Xujie_0528 阅读(142) 评论(0) 推荐(0)
 
Python24-03_记事本项目----将python模块打包成exe文件
摘要: 将python模块打包成exe文件 1. 安装pyinstaller模块 在pycharm中操作, file-->setting-->Project: xxx-->Project interpretor, 再点击+即可 2. 在pycharm的Terminal终端输入如下命令 pyinstaller 阅读全文
posted @ 2020-09-25 10:22 Xujie_0528 阅读(132) 评论(0) 推荐(0)
 
Python24-02_记事本项目----新建文件&背景色改变&快捷键功能
摘要: 新建文件&背景色改变&快捷键功能 1 from tkinter.filedialog import * 2 from tkinter.colorchooser import * 3 4 5 class Application(Frame): 6 def __init__(self, master=N 阅读全文
posted @ 2020-09-25 10:08 Xujie_0528 阅读(295) 评论(0) 推荐(0)
 
Python24-01_记事本项目----打开和保存修改文件的实现
摘要: 打开和保存修改文件的实现 1 from tkinter.filedialog import * 2 from tkinter.colorchooser import * 3 4 5 class Application(Frame): 6 def __init__(self, master=None) 阅读全文
posted @ 2020-09-25 08:19 Xujie_0528 阅读(518) 评论(0) 推荐(0)
 

2020年9月24日

Python23-02_页面设计----主菜单栏&上下文菜单栏
摘要: 菜单栏 GUI程序通常都有菜单, 方便用户交互, 我们一般将菜单分为两种: 1. 主菜单 主菜单通常位于GUI程序的上方 2. 上下文菜单 快捷菜单(上下文菜单)是通过鼠标右键单击组件而弹出的菜单, 一般是和这个组件的相关操作, 比如: 剪切, 复制, 黏贴, 属性等. 1 from tkinter 阅读全文
posted @ 2020-09-24 19:17 Xujie_0528 阅读(539) 评论(0) 推荐(0)
 
Python23-01_页面设计----简单对话框&通用消息对话框
摘要: 简单对话框 simpledialog(简单对话框)包含下列常用函数: 函数名 说明 askfloat(title, prompt, **kw) 输入并返回浮点函数 askinteger(title, prompt, **kw) 输入并返回整数 askstring(title, prompt, **k 阅读全文
posted @ 2020-09-24 10:00 Xujie_0528 阅读(475) 评论(0) 推荐(0)
 

2020年9月23日

Python22-05_页面设计----颜色选择框&文件对话框
摘要: 颜色选择框&文件对话框 颜色选择框 颜色选择框可以帮助我们设置前景色, 背景色, 画笔颜色, 字体颜色等等 1 # coding:utf-8 2 from tkinter import * 3 from tkinter.colorchooser import * 4 5 root = Tk() 6 阅读全文
posted @ 2020-09-23 16:57 Xujie_0528 阅读(279) 评论(0) 推荐(0)
 
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 28 下一页