-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
Intent: We are trying only to display 3d objects with their default parameters
Output: But it only showing a black screen after execution.
System: Linux operating system: Fedora Linux 39 (Workstation Edition), browser: Firefox version 120
from vpython import *
from sys import exit
def menu():
print('1. Curve')
print('2. Sphere')
print('3. Cone')
print('4. Arrow')
print('5. Rings')
print('6. Cylinder')
ch = "y"
while ch != "n":
scene = canvas()
menu()
choice = int(input('Enter choice: '))
if choice == 1:
curve()
elif choice == 2:
sphere()
elif choice == 3:
cone()
elif choice == 4:
arrow()
elif choice == 5:
ring()
elif choice == 6:
cylinder()
else:
print('Invalid choice')
ch = input('Do you want to continue (y/n)? ').lower()
scene.delete()
exit()Tried to resolve this issue: By passing some parameters, by redrawing the screen, updating the screen etc.
Metadata
Metadata
Assignees
Labels
No labels