wxPython wx.Button中的SetBitmapPosition()函数
在这篇文章中,我们将学习与wxPython的wx.Button类相关的SetBitmapPosition()函数。SetBitmapPosition()函数用于设置你想设置的位图的方向。
方向:
1. wx.LEFT
2. wx.RIGHT
3. wx.BOTTOM
4. wx.TOP
语法:wx.Button.SetBitmapPosition(self, dir)
参数。
参数 | 输入类型 | 说明 |
---|---|---|
dir | 方向 | 位图应该被定位的方向,是wx.LEFT、wx.RIGHT、wx.TOP或wx.BOTTOM之一。 |
代码示例。
输出窗口: