推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
rj2
V2EX  ›  Python

qtabelwidget 中右击菜单,求问,如何点击一个动作后, qt 窗口变灰,其余操作不可用。

  •  
  •   rj2 · Jul 24, 2019 · 1272 views
    This topic created in 2550 days ago, the information mentioned may be changed or developed.

    如题,比如我进行“卸载”操作,在这个卸载操作未完成前,整个个 qt 窗口为灰色,点击没有反应。其他操作,比如说“修改”不可用。

    2 replies    2019-07-26 08:55:48 +08:00
    wangyaominde
        1
    wangyaominde  
       Jul 25, 2019
    1.点击这个按钮给一个信号,窗体连接这个信号
    2.在点击的函数里面把窗体所有能点的全部 setEnabled(False)
    可以试试,之前搞过一个按钮的禁选
    rj2
        2
    rj2  
    OP
       Jul 26, 2019
    @wangyaominde 好的 我试下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2839 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:41 · PVG 09:41 · LAX 18:41 · JFK 21:41
    ♥ Do have faith in what you're doing.