![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Gui
佐倉
皆さん、こんにちは。私は桜と申しますが、故郷は河南です。ソフトウェアが大好きだなあ。時間があれば一緒に勉強しましょう!よろしく、お願い致します!
展开
-
PySimpleGUI_非常简单的Python GUI界面
# -*- coding: utf-8 -*-import PySimpleGUI as sg text = sg.Text(" e-mail ")text_entry = sg.InputText()text1 = sg.Text("password")text1_entry = sg.InputText()ok_btn = sg.Button('OK')cancel_btn = sg.Button('Cancel')layout = [[text, text_entry],原创 2021-01-24 09:46:14 · 1616 阅读 · 0 评论 -
pyqt 自定义组合控件
comp_file.py#!/usr/bin/python# -*- coding: utf-8 -*-import sysfrom PyQt4 import QtGui, QtCoreclass MyLineEdit(QtGui.QLineEdit): def __init__( self, parent=None ): super(MyLi...原创 2018-10-25 11:48:27 · 2255 阅读 · 1 评论 -
PySide QLineEdit自动补全功能
#-*- coding:utf-8 -*-from PySide.QtGui import *from PySide.QtCore import *import mathimport sysimport reimport osimport json,timeimport shutilreload(sys)sys.setdefaultencoding("utf-8")...原创 2018-10-23 17:41:40 · 816 阅读 · 0 评论 -
PySide QComBobox自动补全功能
#-*- coding:utf-8 -*-from PySide.QtGui import *from PySide.QtCore import *import mathimport sysimport reimport osimport json,timeimport shutilreload(sys)sys.setdefaultencoding("utf-8")...原创 2018-10-23 17:43:50 · 745 阅读 · 0 评论 -
PySide QLineEdit多次自动补全功能
#-*- coding:utf-8 -*-from PySide.QtGui import *from PySide.QtCore import *import mathimport sysimport reimport osimport json,timeimport shutilreload(sys)sys.setdefaultencoding("utf-8")...原创 2018-10-23 17:49:38 · 325 阅读 · 0 评论 -
PyQt treewiget添加复选框,并获取是否选中
# -*- coding: utf-8 -*-import sysfrom PyQt4.QtGui import *from PyQt4.QtCore import * class TreeWidget(QWidget): def __init__(self): super(TreeWidget, self).__init__() self.s...原创 2018-10-26 12:12:51 · 7983 阅读 · 3 评论 -
PyQt4 treewidget 选择改变颜色,并设置可编辑
# -*- coding: utf-8 -*-import sysfrom PySide.QtGui import *from PySide.QtCore import * global Item_tempItem_temp='' class TreeWidget(QWidget): def __init__(self): super(TreeW...原创 2018-11-01 11:29:01 · 2916 阅读 · 0 评论 -
Python kivy简单的小案例
# coding:utf-8from kivy.app import App from kivy.uix.button import Buttonclass MyDream(App): def build(self): return Button(text='I have a dream!') MyDream().run()#安装模块报错请参考:...原创 2018-11-09 12:15:31 · 6096 阅读 · 1 评论 -
PyQt4_vlc_palyer 视频播放器
# -*- coding: utf-8 -*-import sys,timeimport os.pathimport vlcimport pafyfrom PyQt4 import QtGui from PyQt4 import QtGui as QtWidgetsfrom PyQt4 import QtCorereload(sys)sys.setdefaultencod...原创 2019-08-24 21:54:40 · 639 阅读 · 0 评论 -
python 导航栏
# -*- coding: utf-8 -*-##-------------------------------------------------------------------------------# Name: 导航条控件# Description: # Author: lgk# Date: 2018/6/21#-------...原创 2018-10-10 16:23:49 · 1252 阅读 · 0 评论 -
python系统托盘
#coding=utf-8import sysfrom PySide import QtGuifrom PySide import QtCoreclass Tuopan(QtGui.QLabel): def __init__(self): super(Tuopan, self).__init__() self.setWindowTitle("Tray...原创 2018-10-10 10:23:51 · 2454 阅读 · 0 评论 -
pyqt4 特殊换页
import sysimport collectionsfrom PySide import QtCore, QtGuifrom PySide.QtCore import Qtclass Style: '''Style constants''' # margin for all ui components component_margin = 24 ...原创 2018-09-29 19:13:55 · 437 阅读 · 0 评论 -
python套用模板的资源管理器界面
#-*- coding:utf-8 -*-from PyQt4.QtCore import *from PyQt4.QtGui import *import mathimport osimport jsonQTextCodec.setCodecForTr(QTextCodec.codecForName("utf-8"))class Toollan1(QWidget): ...原创 2018-08-30 16:59:20 · 2384 阅读 · 3 评论 -
python 基本功能手写的资源管理器
#-*- coding:utf-8 -*-from PyQt4.QtGui import *from PyQt4.QtCore import *import mathimport sysimport reimport osimport jsonreload(sys)sys.setdefaultencoding("utf-8")global item_pathite...原创 2018-08-30 17:05:27 · 2716 阅读 · 3 评论 -
maya 自定义窗口置于顶部和不置顶对比以及窗口透明
#第一种方法from PySide2 import QtGui,QtWidgets,QtCoreclass OptionWidget(QtWidgets.QWidget): closed = QtCore.Signal() def __init__(self, *args, **kwargs): super(OptionWidget, self).__init...原创 2018-09-14 18:41:00 · 1263 阅读 · 1 评论 -
nuke 窗口置顶
#!/usr/bin/env python# -*- coding:utf-8 -*-import sysimport osimport tracebackimport timetry: from PySide2 import QtWidgets as QtGui from PySide2 import QtGui as QtGui1 from PySide...原创 2018-09-14 18:51:14 · 624 阅读 · 0 评论 -
python向后台写入信息
#pyqt4#!/usr/bin/python#coding:utf-8 import sysfrom PyQt4 import QtCore, QtGui reload(sys)sys.setdefaultencoding("utf-8") class W2(QtGui.QDialog): myclicked = QtCore.pyqtSignal(str) ...原创 2018-09-29 18:47:06 · 839 阅读 · 0 评论 -
pyqt4定时关闭消息框
# -*- coding: utf-8 -*-import sysimport randomfrom PyQt4.QtGui import *from PyQt4.QtCore import *class BaseProgressDialog(QMainWindow): def __init__(self, parent=None): super(BaseProg...原创 2018-09-29 18:58:12 · 1627 阅读 · 1 评论 -
pyqt4 32位python运行64位方法
# -*- coding: utf-8 -*-from PySide import QtGui, QtCoreimport osimport sysreload(sys)sys.setdefaultencoding("utf-8")class MyLineEdit(QtGui.QLineEdit): def __init__( self, parent=None )...原创 2018-09-29 19:02:22 · 781 阅读 · 0 评论 -
pyqt4 自定义圆形指示灯控件
# -*- coding: utf-8 -*-##-------------------------------------------------------------------------------# Name: 自定义圆形指示灯控件#-----------------------------------------------------------------...原创 2018-09-29 19:10:23 · 4063 阅读 · 0 评论 -
一个简易的图片查看器
# -*- coding: utf-8 -*-#! /usr/bin/env pythonimport sysfrom PyQt4 import QtGui, QtCoreimport os, stringimport mathreload(sys)sys.setdefaultencoding("utf-8")THUMB_WIDTH = 128THUMB_HEIGHT = ...原创 2018-08-30 16:33:36 · 1679 阅读 · 0 评论