robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
451 stars 114 forks source link

Influence position of buttons on choicebox #195

Open Harm10 opened 2 years ago

Harm10 commented 2 years ago

I am using easygui especially to build and display choice boxes in robot framework on Windows. At the moment I get the OK button on the right side of the Cancel button. This is not the same sequence as Windows uses when such a choice needs to be answered.

Can I set some option to change the position of a button?

Harm10 commented 2 years ago

@robertlugg Is there still maintenance done on this package?

zadacka commented 2 years ago

There is not currently an option to do what you want - your most immediate option is to look at the EasyGui source code and create a custom Box configuration that matches what you want.

Nice suggestion, and good point. It might be a good addition.

I’ve been meaning to do get some refactoring and bug fixing done to make adding new features easier - but it keeps getting postponed. It would be really nice to add some class inheritance first before introducing something like this to all of the various box classes currently in existence. In other words - I’d want to do the refactor first, and add features later…

Harm10 commented 2 years ago

@zadacka Thanks for your reply. I have another suggestion: on multibox currently I cannot do a block select (so multiple choices in 1 go); I need to do a one by one select now. Could a block select be added?

zadacka commented 2 years ago

Block select: as in shift click to select a block of choices?

You should definitely already be able to select one at a time (to add to the selection), or hit the 'select all' button to get all of them, right?

I don't think that we've got anything to do selection of a block yet. Am I understanding the idea right?

Harm10 commented 2 years ago

Selecting one by one works fine and select all also works fine. I mean block select: select one, hold left shift and select another and all those in between will be selected.

Harm10 commented 1 year ago

@zadacka Any news on this request?

zadacka commented 1 year ago

Not currently - your most immediate option is to look at the EasyGui source code and create a custom Box configuration that matches what you want.

Nice suggestion, and good point. It might be a good addition.

I’ve been meaning to do get some refactoring and bug fixing done to make adding new features easier - but it keeps getting postponed. It would be really nice to add some class inheritance first before introducing something like this to all of the various box classes currently in existence. In other words - I’d want to do the refactor first, and add features later…

On Fri, 18 Mar 2022 at 13:06, Harm @.***> wrote:

I am using easygui especially to build and display choice boxes in robot framework on Windows. At the moment I get the OK button on the right side of the Cancel button. This is not the same sequence as Windows uses when such a choice needs to be answered.

Can I set some option to change the position of a button?

— Reply to this email directly, view it on GitHub https://github.com/robertlugg/easygui/issues/195, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2XZIOS5GYNTCCVW4Z2P2LVARWWBANCNFSM5RBUZAJA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

zadacka commented 1 year ago

Sorry - lots going on at the moment (moving house this week is certainly not helping either!).

I’ve got a PR for a big refactor which should make many future changes and fixes easier.

I haven’t looked at this particular one though. If you’d like to take a look and submit a PR for the feature I’d be happy to review it…

On Sun, 31 Jul 2022 at 12:49, Harm @.***> wrote:

@zadacka https://github.com/zadacka Any news on this request?

— Reply to this email directly, view it on GitHub https://github.com/robertlugg/easygui/issues/195#issuecomment-1200408865, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2XZIKNCNBBSXBOJQQB2ZDVWZR6DANCNFSM5RBUZAJA . You are receiving this because you were mentioned.Message ID: @.***>

Harm10 commented 1 year ago

@zadacka I am anxiously awaiting your refactor.......... Any news?

zadacka commented 1 year ago

https://github.com/robertlugg/easygui/pull/202

I've been meaning to work through the PR and check that each of the box types works correctly before/after the changes. As there few tests prior to this (and testing UI stuff is generally a pain) the first round of checks needs to be done by hand.

Meant to do this over Xmas/New Year, but ended up relaxing too hard and not doing anything producvite!

Comments on the refactor PR are welcome, especially if you see any bug that I've introduced and not spotted yet...