New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The overflow button of agw.aui.AuiToolBar may disappear #870

Closed
tianzhuqiao opened this Issue May 31, 2018 · 2 comments

Comments

Projects
2 participants
@tianzhuqiao

tianzhuqiao commented May 31, 2018

The overflow button of agw.aui.AuiToolBar may disappear

  1. open demo/agw/AUI.py
  2. drag the toolbar to make it float (one with wx.Choice control)
  3. dock the toolbar
  4. the overflow button (the small triangle at the right end of the toolbar) will not appear when it should.

It looks like it is because AuiManager will call AuiToolBar's Get/SetAGWWindowStyleFlag function during the process:

  1. GetAGWWindowStyleFlag returns the the flag indicating the current stylus (i.e., _agwStyle, e.g., whether overflow button is shown now),
  2. SetAGWWindowStyleFlag will update the original AGW style (i.e., _originalStyle).

So it seems that after changing the GetAGWWindowStyleFlag to return the original style, the problem goes away

    def GetAGWWindowStyleFlag(self):
        """
        Returns the AGW-specific window style flag.

        :see: :meth:`SetAGWWindowStyleFlag` for an explanation of various AGW-specific style.
        """

        return self._originalStyle

virtualbox_2018-05-30_21-21-14

@tianzhuqiao

This comment has been minimized.

tianzhuqiao commented May 31, 2018

After the change

virtualbox_2018-05-30_21-23-08

@RobinD42 RobinD42 added this to To do in 4.0.2 May 31, 2018

@RobinD42 RobinD42 moved this from To do to In progress in 4.0.2 Jun 1, 2018

@RobinD42

This comment has been minimized.

Member

RobinD42 commented Jun 1, 2018

Fixed by #871

@RobinD42 RobinD42 closed this Jun 1, 2018

4.0.2 automation moved this from In progress to Done Jun 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment