Esempio n. 1
0
def make_page(name, title, index, padding=0):
    page = TabPage()
    page.BackColor = Color.White
    page.Dock = DockStyle.Fill
    page.Padding = Padding(padding)
    page.TabIndex = index
    page.Text = title
    return page
Esempio n. 2
0
 def add_page(self, index, name, title, padding=0):
     page = TabPage()
     page.BackColor = Color.White
     page.Dock = DockStyle.Fill
     page.Padding = Padding(padding)
     page.TabIndex = index
     page.Text = title
     self.tabs.Controls.Add(page)