Axis Modifications

More
12 Jan 2025 00:18 #318719 by phillc54
Replied by phillc54 on topic Axis Modifications
Ahh, yes I see that now. There are a couple of procedures in tkfbox.tcl that overwrite the button text.
The only correct way I see to do it would be to roll your own dialog box.
There is an ugly workaround by running the below code in the user_live_update method of the user command file. You would restore bigfileopen.tcl back to the original.
def user_live_update():
    if root_window.tk.eval('winfo exists .__tk_filedialog') == '1':
        open = '\n   Open   \n'
        cancel = '\nCancel\n'
        root_window.tk.eval(f'.__tk_filedialog.contents.f2.ok configure -text {{{open}}}')
        root_window.tk.eval(f'.__tk_filedialog.contents.f2.cancel configure -text {{{cancel}}}')

It is really ugly...
 

Please Log in or Create an account to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum