推荐学习书目
› 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 · 1385 views
    This topic created in 2661 days ago, the information mentioned may be changed or developed.

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

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