V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-01-27 20:23:59 +08:00 · 2635 次点击
    这是一个创建于 2253 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

    2 条回复    2018-01-28 00:01:41 +08:00
    chenstack
        1
    chenstack  
       2018-01-27 22:48:30 +08:00   ❤️ 1
    wxpython 说到底也是 wxWidgets 的绑定,控件都是各平台原生的实现。真要做的话这个估计要用 ScrolledWindow 模拟列表。
    piaochen0
        2
    piaochen0  
    OP
       2018-01-28 00:01:41 +08:00
    @chenstack 非常感谢,这个可以。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2815 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 14:55 · PVG 22:55 · LAX 07:55 · JFK 10:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.