combo = Combo(a, ["red", "blue"]) button = PushButton(a) slider = Slider(a) b = Box(a) textbox = TextBox(b, text="or colours") bgroup = ButtonGroup(b, ["cheese", "ham", "salad"], 1) #a.bg = (255,255,0) text.text_color = "red" text.text_size = 30 text.font = "verdana" #text.bg = "green" check.bg = "#d41789" combo.bg = "blue" combo.text_color = None combo.text_size = 24 #button.bg = "black" button.text_color = (255, 0, 255) button.font = "arial" button.text_size = 18 slider.bg = (123, 234, 12) #textbox.bg = "cyan" textbox.font = "courier" textbox.text_color = "#FF0000" b.bg = "cyan" b.font = "wingdings" #bgroup.bg = "yellow" bgroup.text_color = "#e62112" bgroup.text_color = None bgroup.font = "book antiqua"
exit = PushButton(self.window4, command=self.close_test, args=[self.window4], image="include/images/stopbut.png",grid=[1,7]) exit.bg = "#e9002a" ##_____Code that gets run:__________## # help(STEREOMAINFILE_Server) app = App(title="S.T.A.R.S. User Interface", layout="grid", height=280, width=480, bg="#424242",visible=True) # MainBox = Box(app,grid=[0,0]) welcome_message = Text(app, "Welcome to S.T.A.R.S.", size=20, font="Calibri Bold", color="red", grid=[1,0,2,1]) player_sel = Combo(app,options=["Player1","Player2","Player3","Player4","Player5"],command=gui_app().player_selection,grid=[1,1,2,1]) player_sel.bg = "#424242" player_sel.text_color = "white" player_sel.text_size=14 Box(app,width=10,height=5,grid=[0,0]) # second_message = Text(app, "Please select a drill: ", size=14, font="Calibri Bold", color="green",grid=[1,1,2,1]) # logo = Picture(app, image="include/images/logo.png", align="left", grid=[0,0]) # logo.resize(75, 75) # logoright = Picture(app, image="include/images/logo.png", align="left", grid=[3,0]) # logoright.resize(75, 75) button_width = 17 print('looping') drill_1 = PushButton(app, command=gui_app().staticDrill, args=[app] ,text="Basic Tracking", grid=[1,2],width=17) drill_1.width = button_width drill_1.font="Calibri Bold" drill_1.bg="#006868" drill_1.text_color="white" drill_1.text_size = 14
app = App("Hyannis Marina", width=1140, height=700) app.bg = (115, 160, 230) #app.tk.attributes("-fullscreen",True) # Widgets menubar = MenuBar(app, toplevel=["File", "Edit"], options=[ [ ["Today's Report", todays_report], [today.strftime("%Y Report"), yearly_report],\ ["Recent Reports", white_card_folder]], [ ["Today's List", open_window]] ]) title = Text(app, "Yard Crew", color="White", size=30, font="Quicksand Medium") tech = Combo(app, options=techCombo + ["Tech"], selected="Tech" , command=writeTech) tech.text_size = 30 tech.bg = "white" spacer = Box(app, width="fill", height=20) pic = Picture(app, image=str(main_image)) pic.width = 460 pic.height = 345 spacer2 = Box(app, width="fill", height=30) close = PushButton(app, text="Exit", command=close_app) # Second Window: Edit Today's List window = Window(app, title = "Edit Today's List", height=500, width=950, layout="grid") window.hide() lspacer = Box(window, grid=[0,0], width=20, height=500) left_box = Box(window, grid=[1,0]) mspacer = Box(window, grid=[2,0], width=40, height=500)
openvideo_btn.text_size = fontSizeMin openvideo_btn.bg = "#cc33cc" playvideo_btn = PushButton(app, command=playButton, text="Play Video", width="17", grid=[3, 4, 3, 1]) playvideo_btn.text_size = fontSizeMin compCombo = Combo(app, options=compComboOptions, grid=[0, 5, 5, 1], command=change_comp, align="left") compCombo.text_size = fontSize teamCombo = Combo(app, options=teamComboOptions, grid=[0, 6, 5, 1], align="left") teamCombo.text_size = fontSize roundCombo = Combo(app, options=roundComboOptions, grid=[0, 7, 5, 1], align="left") roundCombo.text_size = fontSize # for x in range(0, 6): # rX = PushButton(app, command=selectButton, args=[x], text=str(x + 1), grid=[x, 5]) # rX.text_size = fontSize # rX.width = 3 # rX.bg = "white"
#box_progress.set_border(2,'black') instructions = Text(box_progress, text="Choose an image for your SD card", enabled=False, grid=[0, 0, 2, 1], color="white", size=20) image_selecter = Combo( box_progress, options=["Stretch Empty", "Stretch Full", "Stretch Lite"], enabled=False, command=selection, grid=[0, 1], selected="Stretch Empty") image_selecter.text_color = "white" image_selecter.text_size = 18 help_button = PushButton(box_progress, grid=[1, 1], command=help_show, text="Need help choosing?") help_button.text_color = "white" help_button.size = 16 help_window = Window(app, height=350, width=700, title="Help", bg="#c51a4a") help_window.hide() help_text1 = Text(help_window, text=stretch_full_info) help_text1.size = 12 help_text1.text_color = "white" help_text2 = Text(help_window, text=stretch_empty_info) help_text2.size = 12 help_text2.text_color = "white"
def plot_noise(): print("Noise Plot") def plot_counts(): print("plot_counts") app = App(layout="grid", title = "EOLT", width = 1500, height = 650) button_box=Box(app, layout="grid", grid=[0, 0, 3, 6], border=3) # Item Numbers itm_num_lbl = Text(button_box, text="1. Choose - Item Number:", size=20, grid=[0,1], align="left") selected_item = Combo(button_box, grid=[1, 1, 2, 1], width=15, options=items, command=update_harnes_fixture_lbl) selected_item.text_size=20 # Serial Numbers serial_label = Text(button_box, text="2. Enter - Serial Number:", size=20, grid=[0,2], align="left") serial_num_txtbox = TextBox(button_box, grid=[1, 2, 2, 1], width=17, command=update_harnes_fixture_lbl) serial_num_txtbox.text_size = 20 # User user_lbl = Text(button_box,text="3. Select - User:"******"left" ) user_lbl.when_double_clicked = double_click user_name_cmb = Combo(button_box,options=users, grid=[1,3, 2, 1], align="left", width=15) user_name_cmb.text_size=20 # Use fixture and harness harness_lbl = Text(button_box, text="4. Use Harness:", size=20, grid=[0, 4], align="left") use_harness = TextBox(button_box, enabled=True, width=17, grid=[1, 4, 2, 1]) use_harness.text_size=20 use_harness.bg = "#999999" fixture_lbl = Text(button_box, text="5. Use Fixture:", size=20, grid=[0,5], align="left")
record = PushButton(app, command=record, text="record") StopRecording = PushButton(app, command=stoprecording, text="stop recording") sizes = Combo(app, options=["normal 1080p", "instagram size", "vga"], command=sizes) effects = Combo(app, options=["none", "filter1", "filter2"], command=effects) effects.text_color = "Blue" effects.font = "Helvetica" effects.text_size = "20" effects.bg = "Yellow" isochanger = Slider(app, command=isochange, start=0, end=800, width=1500) isoteller = Text( app, text="Iso speed (Note:Leave on 0 for automatic!)", ) shutterspeed = Slider(app, command=shutterspeed, start=0, end=50000, width=1000)