answersLogoWhite

0


Best Answer

import ttk

self.tabs = ttk.Notebook(root)

frame = Frame(self.tabs)

tab_1 = ttk.Frame(self.tabs)

tab_2 = ttk.Frame(self.tabs)

tab_3 = ttk.Frame(self.tabs)

tab_4 = ttk.Frame(self.tabs)

self.tabs.add(frame, text=" main ")

self.tabs.add( tab_1 , text=" 1 ")

self.tabs.add( tab_1 , text=" 2 ")

self.tabs.add( tab_1 , text=" 3 ")

self.tabs.add( tab_1 , text=" 4 ")

self.tabs.pack()

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you make multiple tabs on a python program using Tkinter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you make a program in python using do while loop to display the multiplication table of number from one to ten?

a = 0while a < 10 :a += 1print (a)Write the above simple script in a text editor (I use nano). Save as loop.py in home folder. To run, open a terminal and at the prompt, write: python loop.pyResult:rodney@downstairs:~$ python loop.py12345678910


How do you make a random number using Python?

this is the code for making a random number using python: import random &gt;&gt;&gt;random.randint (1, 10) you can do whatever numbers you want.


Where can one obtain a Python list?

Python lists can't be downloaded from an adress or website source. They have to be created in the Python programming language. Lists can then be created by using a text editor.


What are some disadvantages of using case structures to program multiple alternative decisions?

Using case structures becomes difficult when programming multiple alternative decisions. Instead of listing each of the steps and executing them individually, it is easier to make decision structures and loops.


How do you write the code by python?

it depends what type of program you wish to write. python is a very simple programing langauge therefore it doesnt have much room to play with. i mainly use it to work out simple math problems, or use it to calculate thing for games i play, Ex.) This is a program i wrote to work out the Pythagorean therom to find side "C": a = input("Enter Corner Side A\n ") b = input("Enter Corner Side B\n ") c = a*a+b*b import math print math.sqrt(c) raw_input("Press &lt;enter&gt; To Leave Program") input mean that's where you enter your variable, raw input is what you put at the end so it doesnt just run away (NOTE*** THIS IS A PYTHON 2.6.5 SCRIPT, IT WILL NOT WORK ON OTHER VERSIONS OF PYTHON" notice i put ("Press &lt;enter&gt; To Leave Program") this is what it will say before it "runs away". i suggest watching some youtube videos on how to write programs for your version of python. also try using the manual that comes with your version of python. it helps greatly.

Related questions

Can you run a python program using code Can you give me the code I need to use in order for it to work I am using codio plz help?

Assuming you only intend executing your code on your own machine and you have some version of Python installed, you can execute a Python script from within your code in the same way you can execute a Python script via the command line: python script.py infile outfile -o


How do you make a app using the python programming language and not using py2app?

Py2app for the Mac, or Py2exe for Windows, create a standalone executable file from a Python program, which can run without the Python interpreter. You can always run the application within the Python interpreter. If you want to create an executable file, Python includes no built-in tools to do this; you need an application such as Py2app or Py2exe. Of course, you might search for alternative tools, that do the same thing.


What are the five advantages and five disadvantage of using case structures to program multiple alternative decision?

what are five advantages and five disavantages of using case structures to multiple alternative dicisions


How do you make a program in python using do while loop to display the multiplication table of number from one to ten?

a = 0while a < 10 :a += 1print (a)Write the above simple script in a text editor (I use nano). Save as loop.py in home folder. To run, open a terminal and at the prompt, write: python loop.pyResult:rodney@downstairs:~$ python loop.py12345678910


Is python 2.2 a antivirus software?

Python is a programming language, it is used to make computer programs. so you could write an antivirus using python.


ID Cards Creator Program?

Design multiple Plastic ID cards using ID Card Designer Software.


How do you make a random number using Python?

this is the code for making a random number using python: import random &gt;&gt;&gt;random.randint (1, 10) you can do whatever numbers you want.


How do you convert a vbs file into exe file?

Sorry it doesnt work if you are trying to make a program then try using a differant programing language. python is a good one it is quite easy to learn


Where can one obtain a Python list?

Python lists can't be downloaded from an adress or website source. They have to be created in the Python programming language. Lists can then be created by using a text editor.


What are some disadvantages of using case structures to program multiple alternative decisions?

Using case structures becomes difficult when programming multiple alternative decisions. Instead of listing each of the steps and executing them individually, it is easier to make decision structures and loops.


What has the author W F Punch written?

W F Punch is a pseudonym used by the author Warren Murphy, known for his work on the &quot;Destroyer&quot; series of books, which are detective thrillers.


Write a program using a loop to output all the letters of the alphabet in uppercase?

Here's the code for your program: # Loop through the uppercase alphabet letters for letter in range(ord('A'), ord('Z') + 1): print(chr(letter)) BTW you can use this code in Python and try it out for yourself.