File Type Not Changing
It is good practice to avoid global variables. This is one read on why--it can be hard to debug.
In this case, it seems like having
file_typeas a variable within your NotePadView would be cleaner, I.e
Now the specific problem is that, in python,you can read global variables without doing anything special, but to modify a global, you need to declare it as global. So, inside your
type_actionyour first line would need to be
This solves one problem, but apparently whatever is picked in the dialog prints as none instead of what was selected