![]() # if text_property.actual() = 'bold' and text_property.actual() = 'italic': # text_nfigure(font= (current_font_family, current_font_size, 'bold','roman',1)) # if text_property.actual() = 'bold' and text_property.actual() = 'roman': # text_nfigure(font= (current_font_family, current_font_size, 'normal','roman',1)) # if text_property.actual() = 'normal' and text_property.actual() = 'roman': Text_nfigure(font= (current_font_family, current_font_size, 'underline')) Text_nfigure(font= (current_font_family, current_font_size, 'italic')) Text_nfigure(font= (current_font_family, current_font_size, 'bold','italic'))īold_nfigure(command = change_bold) Text_nfigure(font= (current_font_family, current_font_size, 'normal')) Text_nfigure(font= (current_font_family, current_font_size, 'bold')) Text_property = tk.font.Font(font = text_editor) I tried all possible ways those are commented with code #BOLD BUTTON FUNCTIONALITY The editor works perfectly but there is very small problem is that when I select 'Bold' font-style 'italic' is automatically un-selected and when I "UNDERLINE" text bold and italic are un-selected, In short, one function is working only at each time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |