该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
主要部分的源代码如下:
# -*- coding: utf-8 -*-
import wx
import images
from time import *
import panelOne,panelTwo,panelThree
class NotebookDemo(wx.Notebook):
def __init__(self,parent):
wx.Notebook.__init__(self,parent,id=wx.ID_ANY,style=
wx.BK_DEFAULT
#wx.BK_TOP
#wx.BK_BOTTOM
#wx.BK_LEFT
#wx.BK_RIGHT
)
# Create the first tab and add it to the notebook
tabOne = panelOne.TabPanel(self)
tabOne.SetBackgroundColour("Gray")
self.AddPage(tabOne,"TabOne")
# Show how to put an image on one of the notebooktabs,
# first make the image list:
il = wx.ImageList(16,16)
#idx1 = il.Add(wx.Bitmap("bitmaps/config.jpg", wx.BITMAP_TYPE_JPEG))
idx1 = il.Ad