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
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)