def __init__(self, screen): self.screen = screen self.screen_width = screen.get_width() self.screen_height = screen.get_height() self.background_color = 0, 0, 0 #black self.algorithm = 'bubble' # sets the delay in milliseconds self.speed = 0 self.bars = [] self.barwidth = 8 self.issorted = False self.issorting = False self.gen_array(self.barwidth) self.menu = menu.make_menu(self) self.help_menu = menu.make_help_menu() self.font = pygame.font.SysFont('dejavusansmono', 18) self.large_font = pygame.font.SysFont('dejavusansmono', 70)
parser.add_argument("--remove_sources", "-r", dest="remove_sources", action='store_true', help="Remove sources given the supplied region file.") parser.add_argument("--continue", dest='cont', action='store_true', help='Continue where you left off (must also specify --config_file)') parser.add_argument("--batch_init", '-b', dest="batch_file", action='store', default="", help="Supply a CSV file with the relevant meta data for batch processing." "See documentation for full usage instructions.") parser.add_argument("--nH", dest='nH', action='store', default=None) parser.add_argument("--redshift", '-z', dest='redshift', action='store', default=None) parser.add_argument('--cluster_name', '-n', dest='name', action='store', default=None) parser.add_argument('--obsids', dest='obsids', action='store', nargs='+', default=None) parser.add_argument('--abundance', dest='abundance', action='store', default=None) args = parser.parse_args() # logger.debug("Finished getting commandline arguments") return args if __name__ == "__main__": if 1 == len(sys.argv): menu.make_menu() else: cluster_obj = cluster.ClusterObj() args = process_commandline_arguments(cluster_obj)
def main(): #start_camera() make_menu()
from tkinter import * from menu import make_menu from window_gui2 import window_view window_box = Tk() window_box.title("Hangman") make_menu(window_box) window_view() window_box.mainloop()