V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
piaochen0
V2EX  ›  Python

wxPython,如何自定义列表项?

  •  
  •   piaochen0 · Jan 27, 2018 · 3225 views
    This topic created in 3023 days ago, the information mentioned may be changed or developed.

    项目要临时用到 wxpython,昨天刚接触,今天要做出来
    搜了好多地方,都没找到类似的效果。
    基本上就是一个列表,列表中每一项应该是一个 pannel,其中有文字,有按钮。
    这个应该用 wxpython 中的哪种控件,给个思路或者扔个链接也行
    比较急,谢大家了。

    见图:
    http://xianyu.niuke.info/images/list.png

    2 replies    2018-01-28 00:01:41 +08:00
    chenstack
        1
    chenstack  
       Jan 27, 2018   ❤️ 1
    wxpython 说到底也是 wxWidgets 的绑定,控件都是各平台原生的实现。真要做的话这个估计要用 ScrolledWindow 模拟列表。
    piaochen0
        2
    piaochen0  
    OP
       Jan 28, 2018
    @chenstack 非常感谢,这个可以。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1574 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 16:44 · PVG 00:44 · LAX 09:44 · JFK 12:44
    ♥ Do have faith in what you're doing.