Skip to content
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

New container - side menu #342

Open
jarvisteach opened this issue Jan 6, 2018 · 11 comments
Open

New container - side menu #342

jarvisteach opened this issue Jan 6, 2018 · 11 comments
Milestone

Comments

@jarvisteach
Copy link
Owner

A new container - with a menu down the left and panes on the right - similar to installation/setup screens.

This could be achieved fairly easily with a listbox and multiple frames

@mpmc
Copy link
Contributor

mpmc commented Jan 6, 2018

Tried the new demo for side menu - got.

2018-01-06 22:34:15,518 appJar:WARNING [Line 36->2573/setTransparency]: Transparency not supported on LINUX

Traceback (most recent call last):
  File "issue342.py", line 36, in <module>
    size=(600,400), sticky="news", labelFont=20, buttonFont=15, transparency=98) as app:
  File "/home/mark/.local/lib/python3.6/site-packages/appJar/appjar.py", line 547, in __init__
    self.configure(**kwargs)
  File "/home/mark/.local/lib/python3.6/site-packages/appJar/appjar.py", line 2265, in configure
    if icon is not None: self.icon = icon
  File "/home/mark/.local/lib/python3.6/site-packages/appJar/appjar.py", line 4998, in __setattr__
    super(gui, self).__setattr__(name, value)
  File "/home/mark/.local/lib/python3.6/site-packages/appJar/appjar.py", line 2545, in setIcon
    container.wm_iconbitmap(image)
  File "/usr/lib/python3.6/tkinter/__init__.py", line 1868, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
_tkinter.TclError: bitmap "favicon.ico" not defined

@jarvisteach
Copy link
Owner Author

jarvisteach commented Jan 6, 2018 via email

@mpmc
Copy link
Contributor

mpmc commented Jan 6, 2018

Yep that worked, however it doesn't play nice with ttk.

@jarvisteach
Copy link
Owner Author

early days :)

@jarvisteach jarvisteach added this to the 1.0 milestone Jan 6, 2018
@jarvisteach
Copy link
Owner Author

342

jarvisteach added a commit that referenced this issue Jan 22, 2018
@mpmc
Copy link
Contributor

mpmc commented Jan 22, 2018

I wouldn't say this is a side menu it's more a paged side menu, especially given the previous / next buttons. A side menu would be more akin to ttk's notebook like here.

@cowsay652
Copy link
Contributor

I have noticed a small thing though - on Windows, the text in a listbox is underlined when it is active (and it appears that on Mac/Linux this doesn't happen). I feel that it makes the menu on the side a bit odd for some reason - (looks too much like a hyperlink I think).
Just thought that I'd point that out...

@jarvisteach
Copy link
Owner Author

The next/previous buttons just cycle through the tabs, they could be easily enabled/disabled.

I googled the underline - looks like the "activestyle" config of the listbox defaults to underlined, although you're right, I've never noticed this on a mac.

I think setting that to "none" might remove the underline...

jarvisteach added a commit that referenced this issue Jan 23, 2018
* Now has flag to show buttons
* Removed activestyle
@cowsay652
Copy link
Contributor

@jarvisteach Yep - that removed the underline.

jarvisteach added a commit that referenced this issue Jan 24, 2018
jarvisteach added a commit that referenced this issue Jan 27, 2018
Side menu colour matches label frame
@jarvisteach jarvisteach modified the milestones: 1.0, 1.1 Apr 9, 2018
jarvisteach added a commit that referenced this issue Apr 12, 2018
@jarvisteach
Copy link
Owner Author

  • Now uses FrameStack.
  • Can now disable/enable keyboard/mouse control of tabs.
  • Improved looks

side

@jarvisteach
Copy link
Owner Author

Long lists add a scrollbar - ruins the colours :(

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

No branches or pull requests

3 participants