Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用的主要原因wx.SpinCtrl是限制用户输入整数,因此我认为其中的文本如果右对齐会更好看。
wx.SpinCtrl
有没有办法在 wxPython 中做到这一点?
实际上,您可以使用一个控件。它叫做 FloatSpin,在 agw 子库中。如果您还没有它,请下载 wxPython 演示并查看它!