Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Buttons Panel #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions main_Window.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
from tkinter import*

def run(stream):

window = Tk()
window.title("welcome")
window.geometry('600x600')
window.configure(width =50,height = 50, bg='blue')

#creating butoon for autonomous mapping
add_label(window, text = "Autonomous Mapping", bg = 'red', fg ='white', column =0, row =7)
def clicked():
pass
add_button(window, text='Click Me', bg = 'white', fg ='red', command = clicked, column=1, row=0 )

# creating button for non-autonomous mapping
add_label(window, text = "Non-autonomous Mapping", bg = 'white', fg ='red',column=0, row=2 )
def clicked():
pass
add_button(window, text='Click Me', bg = "red", fg = "white", command= clicked,column=1, row=2 )

# creating a button for Before coral photo
add_label(window, text = "Before Coral Photo", bg = 'red', fg ='white',column=0, row=3 )
def clicked():
pass
add_button( window, text='Click Me', bg = "white", fg = "red", command= clicked,column=1, row=3)

# creating a button for After Coral Photo
add_label(window, text = "After Coral Photo", bg = 'white', fg ='red',column=0, row=4 )
def clicked():
pass
add_button(window, text='Click Me', bg= "red",fg = "white", command = clicked, column=1, row=4)

# creating a button for Capture Subway Car
add_label(window, text = "Capture Subway Car", bg = 'red', fg ='white', column=0, row=5)
def clicked():
pass
add_button(window, text='Click Me', bg = 'white', fg = 'red', command= clicked, column=1, row=5)

# creating a button for Stitch Subway Car
add_label(window, text = "Stitch Subway Car", bg = 'white', fg ='red', column=0, row=6)
def clicked():
pass
add_button(window, text='Click Me', bg = 'red', fg = 'white', command= clicked, column=1, row=6)

# creating a button for Switch Camera
add_label(window, text = "Switch Camera", bg = 'red', fg ='white', column=0, row=7)
def clicked():
pass
add_button(window, text='Click Me', bg = 'white', fg ='red', command = clicked, column=1, row=7)

window.mainloop()

def add_button(window, text, bg, fg, command, column, row):
btn = Button(window, text, bg, fg, command)
btn.grid(column, row)
def add_label(window, text , bg , fg, row, column ):
lbl = Label(window, text , bg , fg )
lbl.grid(row,column)








1 change: 1 addition & 0 deletions rov-vision
Submodule rov-vision added at 302409