![]() add_cascade( label = "Edit", menu = edit_menu)Įdit_menu. quit)Įdit_menu = Menu( my_menu, tearoff = False) add_command( label = "Exit", command = root. add_command( label = "Print File", command = print_file)įile_menu. add_command( label = "Save As.", command = save_as_file)įile_menu. add_command( label = "Save", command = save_file)įile_menu. add_command( label = "Open", command = open_file)įile_menu. add_command( label = "New", command = new_file)įile_menu. add_cascade( label = "File", menu = file_menu)įile_menu. xview)įile_menu = Menu( my_menu, tearoff = False) set, wrap = "none", xscrollcommand = hor_scroll. My_text = Text( my_frame, width = 97, height = 25, font =( "Helvetica", 16), selectbackground = "yellow", selectforeground = "black", undo = True, yscrollcommand = text_scroll. Hor_scroll = Scrollbar( my_frame, orient = 'horizontal') ![]() config( bg = main_color, fg = text_color) config( bg = main_color, fg = text_color)Ĭolor_menu. config( bg = main_color, fg = text_color)Įdit_menu. config( bg = second_color)Ĭolor_text_button. ShellExecute( 0, "print", file_to_print, None, ".", 0) #printer_name = win32print.GetDefaultPrinter()įile_to_print = filedialog. tag_add( "colored", "sel.first", "sel.last") tag_remove( "colored", "sel.first", "sel.last") tag_configure( "colored", font = color_font, foreground = my_color) tag_add( "italic", "sel.first", "sel.last")Ĭolor_font = font. tag_remove( "italic", "sel.first", "sel.last") tag_configure( "italic", font = italics_font) tag_add( "bold", "sel.first", "sel.last") tag_remove( "bold", "sel.first", "sel.last") tag_configure( "bold", font = bold_font)Ĭurrent_tags = my_text. # check to see if we used keyboard shortcutsīold_font = font. # Make filename global so we can access it later
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |