wizard mode for tkinter UI #721
Replies: 6 comments
|
regarding tkinterdnd2, according to https://techgaun.github.io/active-forks/index.html#https://github.com/pmgagne/tkinterdnd2 looks like the most up-to-date fork is: |
This is actually one of the two modes (Open mode and Save mode) in "File chooser dialogs" in all operating systems. In "Save" mode, you type the name of file (but can optionally change the folder as well). That's what you see when you press Ctrl+S (or Command+S) in most apps. The only question is, does this dialog look like the standard "Save File" dialog (that users are used to) in each operating system.
That's a good point. Only it wasn't for glossaries that can be folders themselves, and user selects the folder. We don't want to create the output folder inside input folder, and with same name! The logic for this depends on format, so it's a bit tricky.
Actually there is. But instead of a drop-down menu for 50 items, it's 2 buttons in Page 3 (Input Format and Output Format) that opens a small dialog where you can search the format name. Either the format is auto-detected from extension or you have to select it (you can change it even if auto-selected). This is basically the same as classic UI. This would be nice! Thanks. Also, we can get AI make a Wizard-based Qt6 (PyQt or PySides) interface for us that solves many of the problems we are having with Tkinter. And update Windows and Mac build workflows to include it. What do you think? |
|
Qt is of course a nicer, more modern and overall better choice but also heavier dependencies. If a qt flavour can be built in a github runner that would be great, nuitka has plugins for PyQt6 that can be enabled with The wizard is definitely a good option for general users who struggle with complex UIs but maybe the number of steps can be reduced to the bare minimum? This is an example of Keka, a simple file archiver for mac, it registers itself to open specific file extensions from the OS file manager, but archiving is done by dragging a file or folder onto the app window, no steps, no actual wizard, but maybe a useful approach?
In Keka on drag enter event the dialog changes to a big drag zone with the the text Drag here to convert, and then the next dialog is a save file picker with a suggested best guess file name that the user just confirms or edits and confirms, and then everything is done.
The destination format is the top right dropdown in the original window: Also in Keka's preferences there is a Save to location, which can be Ask each time, Next to original file, or Custom folder...
This is, of course, a simplified use case, but in concept it is a converter, like pyglossary. Having the ability to open pyglossary from the OS file manager context menu like Open With would be nice too but probably not easily done in a cross-platform ways, although I think I have added a few dictionary file extensions in the windows Inno installer although haven't checked what actually happens on windows when e.g. a.mdx file is double-clicked from Explorer.
|
|
a claude session for possible UI/UX approaches; not sure how helpful it is, the prompt's focus was on high-level approach not actual implementation, maybe I didn't polish it well: the screen mockup generated as part of the session, apparently, mermaid and the mockup are not rendered via shared links; mermaid diagrams can be rendered online via https://mermaid.ai/live or, for example in vscode inside a markdown file as a ```
📎 file_converter_ux_mockups.html the mockups, click A, B, C to see proposed variants |
|
I changed the Step 2 (output file). |
|
thanks! maybe I am too picky, but still see there is unnecessary cognitive load and more clicks than necessary, a bit against python's philosophy of reasonable defaults.
Would be great to hear what other app users think, with different backgrounds and different levels of computer familiarity. My perspective might be too narrow, also, I might be too blunt and direct. ;) |




Uh oh!
There was an error while loading. Please reload this page.
moving discussion from #720
on first try the wizard is even more confusing than the classic UI — first it won't allow drag-n-dropping a file from whatever file manager the OS is using (of course, the classic UI doesn't either), and secondly, the wizard asks to pick a file which does not exist yet (or is it a folder?). If it is a folder, then maybe the same folder as the original file would be good enough as the default choice?
But then the format selection gets mysterious, since the extension would be the only hint for the format which imo forces even higher cognitive load on the user. There is no format drop-down in either Input or Output screen, only on the final screen.
Step 2 displays no context about what selection was made on step one, the only hint is the Previous button. Maybe the 3rd step can be omitted?
Or, for example, the context on previous steps can be included in current step so that that when the user gets to step 3 they get the same UI as the classic dialog.
I understand that vanilla tkinter has no drag-n-drop, but there seems to be tkinterdnd2, not 💯 sure if this the the correct fork, apparently the original repo is unmaintained.
All reactions