QQ群:476842922(欢迎加群讨论学习)
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 15 21:43:13 2019
@author: Administrator
"""
import wx
class ListBoxFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1, 'List Box Example',
size=(250, 400))
panel = wx.Panel(self, -1)
sampleList = ['zero', 'one', 'two', 'three', 'four', 'five',
'six', 'seven', 'eight', 'nine', 'ten', 'eleven',
'twelve', 'thirteen', 'fourteen']
listBox = wx.ListBox(panel, -1, (0, 0),( 280, 420), sampleList,
wx.LB_SINGLE)
listBox.SetSelection(3)
if __name__ == '__main__':
app = wx.PySimpleApp()
ListBoxFrame().Show()
app.MainLoop()
wx.ListBox简单例子
猜你喜欢
转载自blog.csdn.net/weixin_33595571/article/details/86499843
今日推荐
周排行