Relative Content

Tag Archive for pythontkinterttkbootstrap

Why won’t my tkinter code to open a file work?

I am trying to make a application to get a user to press a button and be able to open a csv file and then make a copy of that file in a certain directory, however the first line of code in the function won’t work. Here is an excerpt of the code below.

ttkbootstrap FontDialog Cancel and Ok give same result

While trying to use the FontDialog class from ttkbootstrap I noticed that no matter what button I press (OK or Cancel) on the window that opens that allows to choose the font parameters, the result will be the same. A font object is passed regardless of user interaction to the FontDialog.result attribute.