Giter Club home page Giter Club logo

pyqt5's Introduction

pyqt5

运用pyqt5进行界面设计

1、 create_ini_file:
因为项目中会生成很多窗口,如何保存这些窗口中的数据,因为目前所做的项目窗口数据量很小,故采用ini配置文件来保存。ini文件的百科解释https://baike.baidu.com/item/ini%E6%96%87%E4%BB%B6/9718973?fr=aladdin ,是一种以键值对保存的配置文件,通过键可以很容易实现配置参数的问题。
更新0314:使用try--except来处理未读取文件时的异常,在主程序中加入app.aboutToQuit.connect(app.deleteLater) 来解决程序第二次运行时产生【Python已停止运行】的异常

2、scroll_example:
使用了scrollArea,因为我用的Qt designer,在侧边栏containers中选择Scroll Area,将其拖动到窗口中,设置大小,然后将需要缩放的内容都放在scrollArea下。设置内容的最小长宽大于scrollArea的大小,就能出现滚动条。

pyqt5's People

Contributors

woinews avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.