RibbonBar testers on GTK and Mac?

Hi All,

    I would really like to include the RibbonBar in the wxPython
distribution (under wx.lib.agw) in SVN, but unfortunately I didn't
receive any bug reports/feedback from GTK and Mac users. I know, I
know, the RibbonBar is an evil Windows thing and other platforms don't
want to use it, but as it is written in wxPython it *should* be
cross-platform and should work equally well on MSW, GTK and Mac.

If there are kind developers out there with access to Linux/Unix and
Mac machines, could you please let me know if the RibbonBar located
here:

http://xoomer.virgilio.it/infinity77/main/freeware.html#ribbonbar

or here:

http://xoomer.alice.it/infinity77/main/freeware.html#ribbonbar

works on the aforementioned platforms?

···

*************
** WARNING **
*************

Currently the RibbonBar in *vertical* mode is still a bit buggy on MSW.

Thank you.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/

Hi,

···

On Nov 13, 2009, at 6:22 AM, Andrea Gavana wrote:

Hi All,

   I would really like to include the RibbonBar in the wxPython
distribution (under wx.lib.agw) in SVN, but unfortunately I didn't
receive any bug reports/feedback from GTK and Mac users. I know, I
know, the RibbonBar is an evil Windows thing and other platforms don't
want to use it, but as it is written in wxPython it *should* be
cross-platform and should work equally well on MSW, GTK and Mac.

If there are kind developers out there with access to Linux/Unix and
Mac machines, could you please let me know if the RibbonBar located
here:

Seems to work fine as far as I can tell on my Mac. Didn't really know what this 'ui innovation' from M$ that I kept hearing about was, seems to be just a notebook with different toolbars in it.

Anyway, looks good and I don't see any apparent issues by running your demo.

Cody

Hi Andrea,

     I would really like to include the RibbonBar in the wxPython
distribution (under wx.lib.agw) in SVN, but unfortunately I didn't
receive any bug reports/feedback from GTK and Mac users. I know, I
know, the RibbonBar is an evil Windows thing and other platforms don't
want to use it, but as it is written in wxPython it *should* be
cross-platform and should work equally well on MSW, GTK and Mac.

If there are kind developers out there with access to Linux/Unix and
Mac machines, could you please let me know if the RibbonBar located
here:
   
Testing on wxMac, I found the following issue: the panel (e.g. Toolbar,
Selection) over which the mouse is hovering isn't always highlighted,
and sometimes the highlight stays on a panel that the mouse visited
before. If I move the mouse over the panel titles, the highlight
correctly follows the mouse, however if you move the mouse over the
buttons inside the panels, the highlight doesn't always follow. It
doesn't appear to matter which provider is active. This doesn't occur on
wxGTK.

On wxMac, the fonts are also a little on the small side. I've attached a
screenshot.

wxGTK doesn't seem to have any issues.

Regards,
Roel

···

On 13-11-09 13:22, Andrea Gavana wrote:

http://xoomer.virgilio.it/infinity77/main/freeware.html#ribbonbar

or here:

http://xoomer.alice.it/infinity77/main/freeware.html#ribbonbar

works on the aforementioned platforms?

*************
** WARNING **
*************

Currently the RibbonBar in *vertical* mode is still a bit buggy on MSW.

Thank you.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/

>

First had to set wxversion.select("2.8") in RibbonDemo.py: I wonder if I can
safely uninstall 2.6 which gave me few headaches lately without removing
dependencies (SPE and few other gimmicks)

Had this dump on my linux box:

OverflowError: in method 'Rect_width_set', expected argument 2 of type 'int'
Traceback (most recent call last):
  File "/home/stefano/src/ribbon/ribbon/panel.py", line 228, in OnPaint
    self._art.DrawPanelBackground(dc, self, wx.RectS(self.GetSize()))
  File "/home/stefano/src/ribbon/ribbon/art_msw.py", line 1178, in
DrawPanelBackground
    self.DrawPartialPageBackground(dc, wnd, rect, False)
  File "/home/stefano/src/ribbon/ribbon/art_msw.py", line 906, in
DrawPartialPageBackground
    self.DrawPartialPageBackground2(dc, wnd, rect, allow_hovered_or_page)
  File "/home/stefano/src/ribbon/ribbon/art_msw.py", line 1566, in
DrawPartialPageBackground2
    self.DrawPartialPageBackground(dc, wnd, rect, page, offset, hovered)
  File "/home/stefano/src/ribbon/ribbon/art_msw.py", line 908, in
DrawPartialPageBackground
    self.DrawPartialPageBackground1(dc, wnd, rect, allow_hovered_or_page,
offset, hovered)
  File "/home/stefano/src/ribbon/ribbon/art_msw.py", line 924, in
DrawPartialPageBackground1
    background.width = sys.maxint
OverflowError: in method 'Rect_width_set', expected argument 2 of type 'int'

Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
wx.__version__ '2.8.10.1'
Linux Mint 7 (Linux 2.6.28-15-generic #52-Ubuntu SMP Wed Sep 9 10:48:52 UTC
2009 x86_64 GNU/Linux)

···

On venerdì 13 novembre 2009 15:34:07 Roel van Os wrote:

Hi Andrea,

On 13-11-09 13:22, Andrea Gavana wrote:
> I would really like to include the RibbonBar in the wxPython
> distribution (under wx.lib.agw) in SVN, but unfortunately I didn't
> receive any bug reports/feedback from GTK and Mac users. I know, I
> know, the RibbonBar is an evil Windows thing and other platforms don't
> want to use it, but as it is written in wxPython it *should* be
> cross-platform and should work equally well on MSW, GTK and Mac.
>
> If there are kind developers out there with access to Linux/Unix and
> Mac machines, could you please let me know if the RibbonBar located
> here:

Testing on wxMac, I found the following issue: the panel (e.g. Toolbar,
Selection) over which the mouse is hovering isn't always highlighted,
and sometimes the highlight stays on a panel that the mouse visited
before. If I move the mouse over the panel titles, the highlight
correctly follows the mouse, however if you move the mouse over the
buttons inside the panels, the highlight doesn't always follow. It
doesn't appear to matter which provider is active. This doesn't occur on
wxGTK.

On wxMac, the fonts are also a little on the small side. I've attached a
screenshot.

wxGTK doesn't seem to have any issues.

--
Jazz is not dead, it just smells funny (FZ)

Hi Andrea,

Hi All,

I would really like to include the RibbonBar in the wxPython

distribution (under wx.lib.agw) in SVN, but unfortunately I didn't
receive any bug reports/feedback from GTK and Mac users. I know, I
know, the RibbonBar is an evil Windows thing and other platforms don't
want to use it, but as it is written in wxPython it *should* be
cross-platform and should work equally well on MSW, GTK and Mac.

If there are kind developers out there with access to Linux/Unix and
Mac machines, could you please let me know if the RibbonBar located
here:

http://xoomer.virgilio.it/infinity77/main/freeware.html#ribbonbar

or here:

http://xoomer.alice.it/infinity77/main/freeware.html#ribbonbar

works on the aforementioned platforms?

*************
** WARNING **
*************

Currently the RibbonBar in *vertical* mode is still a bit buggy on MSW.

Thank you.

Andrea.

On Ubuntu 9.04, when running the demo, I see a blank blue toolbar with
nothing in it. I also get the following traceback:

OverflowError: in method 'Rect_width_set', expected argument 2 of type
'int'
Traceback (most recent call last):
  File "/home/mike/Desktop/ribbon/ribbon/toolbar.py", line 455, in
OnPaint
    self._art.DrawToolBarBackground(dc, self, wx.RectS(self.GetSize
()))
  File "/home/mike/Desktop/ribbon/ribbon/art_msw.py", line 1725, in
DrawToolBarBackground
    self.DrawPartialPageBackground(dc, wnd, rect)
  File "/home/mike/Desktop/ribbon/ribbon/art_msw.py", line 906, in
DrawPartialPageBackground
    self.DrawPartialPageBackground2(dc, wnd, rect,
allow_hovered_or_page)
  File "/home/mike/Desktop/ribbon/ribbon/art_msw.py", line 1566, in
DrawPartialPageBackground2
    self.DrawPartialPageBackground(dc, wnd, rect, page, offset,
hovered)
  File "/home/mike/Desktop/ribbon/ribbon/art_msw.py", line 908, in
DrawPartialPageBackground
    self.DrawPartialPageBackground1(dc, wnd, rect,
allow_hovered_or_page, offset, hovered)
  File "/home/mike/Desktop/ribbon/ribbon/art_msw.py", line 924, in
DrawPartialPageBackground1
    background.width = sys.maxint
OverflowError: in method 'Rect_width_set', expected argument 2 of type
'int'

The traceback appears the minute the demo finishes loading and
continues to print as I move my cursor around in the first tab. I am
running Python 2.6.2 and wxPython 2.8.10.1 (unicode).

I get the same error on Ubuntu 8.10 with Python 2.5.2 and wxPython
2.8.8.0.

- Mike

···

On Nov 13, 6:22 am, Andrea Gavana <andrea.gav...@gmail.com> wrote:

Testing on wxMac, I found the following issue: the panel (e.g. Toolbar,

Selection) over which the mouse is hovering isn’t always highlighted,

and sometimes the highlight stays on a panel that the mouse visited

before. If I move the mouse over the panel titles, the highlight

correctly follows the mouse, however if you move the mouse over the

buttons inside the panels, the highlight doesn’t always follow. It

doesn’t appear to matter which provider is active. This doesn’t occur on

wxGTK.

I saw the same thing - in particular, when I switched to a tab, the panel that was previously highlighted the last time that tab was viewed will still be highlighted, even if you move the mouse to another panel. (But if you move the mouse to the pre-highlighted panel and keep moving, it will correctly un-highlight.) Also, if I click one of the buttons in the Toolbar panel in the Examples tab, the Toolbar panel usually stays highlighted even if I move to another tab, and doesn’t return to normal until I move the mouse over it and back. None of this detracts from functionality - it just looks a little clunky.

On wxMac, the fonts are also a little on the small side.

Seconded.

On a related note, I’m unfamiliar with the ArtProvider object, and Robin’s book doesn’t say much about it - is there a clear description/how-to anywhere? It looks like something I should be using.

···

On Fri, Nov 13, 2009 at 6:34 AM, Roel van Os roel.van.os@humanitech.nl wrote:

Hi,

···

On Nov 13, 1:39 pm, Nathaniel Echols <nathaniel.ech...@gmail.com> wrote:

On Fri, Nov 13, 2009 at 6:34 AM, Roel van Os <roel.van...@humanitech.nl>wrote:

> Testing on wxMac, I found the following issue: the panel (e.g. Toolbar,
> Selection) over which the mouse is hovering isn't always highlighted,
> and sometimes the highlight stays on a panel that the mouse visited
> before. If I move the mouse over the panel titles, the highlight
> correctly follows the mouse, however if you move the mouse over the
> buttons inside the panels, the highlight doesn't always follow. It
> doesn't appear to matter which provider is active. This doesn't occur on
> wxGTK.

I saw the same thing - in particular, when I switched to a tab, the panel
that was previously highlighted the last time that tab was viewed will still
be highlighted, even if you move the mouse to another panel. (But if you
move the mouse to the pre-highlighted panel and keep moving, it will
correctly un-highlight.) Also, if I click one of the buttons in the Toolbar
panel in the Examples tab, the Toolbar panel usually stays highlighted even
if I move to another tab, and doesn't return to normal until I move the
mouse over it and back. None of this detracts from functionality - it just
looks a little clunky.

> On wxMac, the fonts are also a little on the small side.

Seconded.

On a related note, I'm unfamiliar with the ArtProvider object, and Robin's
book doesn't say much about it - is there a clear description/how-to
anywhere? It looks like something I should be using.

See the demo under the "Using Images" section. I also have an example
in this blog post:

However, it's not very detailed.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

I concur with everything that Roel and Nathaniel have noted with the RibbonBar on my Mac. However, I few additional points:

1/ The HybridButton used for the triangle object does not register a mouse_over or click event on the label portion. If you mouse over the icon or the drop down arrow portion of the button first its ok, but if you run the mouse directly over the label no dice. The larger sizes of the button work fine.

2/ If you shrink the window size so that the shapes panel is shrunk down to a drop down list, and then do a selection (which displays the expanded list of bottons) the expanded list detaches itself from the main window so that when you resize the main window the shapes panel is now empty, but is in a separate and fixed position on the screen. I've attached a couple of screen shot of what this looks like. Same thing happens with the selection panel. The panel seems to reattach itself if you a/ click to get the drop down, b/ click on one of the options then c/ reclick on the drop down button. The buttons also appear to lose their event triggers when accessed via the drop down window.

Picture 6.png

Picture 7.png

Thanks guys for all the information provided (and for the testing).
The GTK issue and Mac small font one seem easy to fix, I am not sure
about the other ones as I can't test my modifications on a Mac.

Thanks again.

···

2009/11/13 Mark Gemmill <mark.gemmill@gmail.com>:

I concur with everything that Roel and Nathaniel have noted with the
RibbonBar on my Mac. However, I few additional points:

1/ The HybridButton used for the triangle object does not register a
mouse_over or click event on the label portion. If you mouse over the
icon or the drop down arrow portion of the button first its ok, but if
you run the mouse directly over the label no dice. The larger sizes of
the button work fine.

2/ If you shrink the window size so that the shapes panel is shrunk
down to a drop down list, and then do a selection (which displays the
expanded list of bottons) the expanded list detaches itself from the
main window so that when you resize the main window the shapes panel
is now empty, but is in a separate and fixed position on the screen.
I've attached a couple of screen shot of what this looks like. Same
thing happens with the selection panel. The panel seems to reattach
itself if you a/ click to get the drop down, b/ click on one of the
options then c/ reclick on the drop down button. The buttons also
appear to lose their event triggers when accessed via the drop down
window.

>

3/ if you resize (i.e. small to large to small) the main window a
number of times (checking how the button resizing works for instance)
it eventually generates the following error.

... python RibbonDemo.py
Traceback (most recent call last):
File "/Users/mark/Downloads/RibbonBar/ribbon/panel.py", line 194,
in DoSetSize
RibbonControl.DoSetSize(self, x, y, width, height, sizeFlags)
RuntimeError: maximum recursion depth exceeded while calling a Python
object
Exception RuntimeError: 'maximum recursion depth exceeded while
calling a Python object' in ignored
Traceback (most recent call last):
File "/Users/mark/Downloads/RibbonBar/ribbon/panel.py", line 184,
in DoSetSize
minimised = (self._flags & RIBBON_PANEL_NO_AUTO_MINIMISE) == 0
and self.IsMinimised(wx.Size(width, height))
RuntimeError: maximum recursion depth exceeded while calling a Python
object
Exception RuntimeError: 'maximum recursion depth exceeded while
calling a Python object' in ignored
Traceback (most recent call last):
File "/Users/mark/Downloads/RibbonBar/ribbon/panel.py", line 184,
in DoSetSize
minimised = (self._flags & RIBBON_PANEL_NO_AUTO_MINIMISE) == 0
and self.IsMinimised(wx.Size(width, height))
RuntimeError: maximum recursion depth exceeded while calling a Python
object
Exception RuntimeError: 'maximum recursion depth exceeded while
calling a Python object' in ignored
Traceback (most recent call last):
File "/Users/mark/Downloads/RibbonBar/ribbon/panel.py", line 184,
in DoSetSize
minimised = (self._flags & RIBBON_PANEL_NO_AUTO_MINIMISE) == 0
and self.IsMinimised(wx.Size(width, height))
RuntimeError: maximum recursion depth exceeded while calling a Python
object
Traceback (most recent call last):
File "/Users/mark/Downloads/RibbonBar/ribbon/page.py", line 278, in
OnSize
self.Layout()
File "/Users/mark/Downloads/RibbonBar/ribbon/page.py", line 405, in
Layout
result = self.CollapsePanels(major_axis, -available_space)
File "/Users/mark/Downloads/RibbonBar/ribbon/page.py", line 611, in
CollapsePanels
smaller = panel.GetNextSmallerSize(direction)
File "/Users/mark/Downloads/RibbonBar/ribbon/control.py", line 59,
in GetNextSmallerSize
return self.DoGetNextSmallerSize(direction, self.GetSize())
File "/Users/mark/Downloads/RibbonBar/ribbon/panel.py", line 252,
in DoGetNextSmallerSize
dc = wx.ClientDC(self)
File "//usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.6/site-
packages/wx-2.8-mac-unicode/wx/_gdi.py", line 4684, in __init__
_gdi_.ClientDC_swiginit(self,_gdi_.new_ClientDC(*args, **kwargs))
RuntimeError: maximum recursion depth exceeded while calling a Python
object

Mark

--
Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

I’d be happy to help with testing. I might even dive into the code myself if I have enough time, since this is something I might potentially use in the future.

···

On Sat, Nov 14, 2009 at 11:14 AM, Andrea Gavana andrea.gavana@gmail.com wrote:

Thanks guys for all the information provided (and for the testing).

The GTK issue and Mac small font one seem easy to fix, I am not sure

about the other ones as I can’t test my modifications on a Mac.

Andrea Gavana wrote:

Hi All,

    I would really like to include the RibbonBar in the wxPython
distribution (under wx.lib.agw) in SVN, but unfortunately I didn't
receive any bug reports/feedback from GTK and Mac users. I know, I
know, the RibbonBar is an evil Windows thing and other platforms don't
want to use it, but as it is written in wxPython it *should* be
cross-platform and should work equally well on MSW, GTK and Mac.

If there are kind developers out there with access to Linux/Unix and
Mac machines, could you please let me know if the RibbonBar located
here:

http://xoomer.virgilio.it/infinity77/main/freeware.html#ribbonbar

or here:

http://xoomer.alice.it/infinity77/main/freeware.html#ribbonbar

works on the aforementioned platforms?

Quick click around on ArchLinux with: python 2.6.4-1, wxpython 2.8.10.1-1

Demo works as advertised.

Manne

Hi All,

2009/11/13 Mark Gemmill:

I concur with everything that Roel and Nathaniel have noted with the
RibbonBar on my Mac. However, I few additional points:

1/ The HybridButton used for the triangle object does not register a
mouse_over or click event on the label portion. If you mouse over the
icon or the drop down arrow portion of the button first its ok, but if
you run the mouse directly over the label no dice. The larger sizes of
the button work fine.

2/ If you shrink the window size so that the shapes panel is shrunk
down to a drop down list, and then do a selection (which displays the
expanded list of bottons) the expanded list detaches itself from the
main window so that when you resize the main window the shapes panel
is now empty, but is in a separate and fixed position on the screen.
I've attached a couple of screen shot of what this looks like. Same
thing happens with the selection panel. The panel seems to reattach
itself if you a/ click to get the drop down, b/ click on one of the
options then c/ reclick on the drop down button. The buttons also
appear to lose their event triggers when accessed via the drop down
window.

3/ if you resize (i.e. small to large to small) the main window a
number of times (checking how the button resizing works for instance)
it eventually generates the following error.

... python RibbonDemo.py
Traceback (most recent call last):
File "/Users/mark/Downloads/RibbonBar/ribbon/panel.py", line 194,
in DoSetSize
RibbonControl.DoSetSize(self, x, y, width, height, sizeFlags)

I have fixed some of the issues, for instance:

- GTK should not complain any more about the sys.maxint issue;
- The hybrid buttons should now behave correctly;
- When the RibbonBar is shrunk, the buttons do not lose their event handler.

I am sure the other issues observed on the Mac are still there, but I
really do need some help from Mac users to fix these. I have committed
the ribbon library to SVN for inclusion with the next wxPython release
(but you can get it now if you have a SVN client).

Robin, if you think it's still too early to include the RibbonBar in
wx.lib.agw please let me know, I'll remove it.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Santa should get your baby a Mac Mini for Christmas, and then you can borrow it until she is old enough to use it. :wink:

···

On 11/18/09 2:25 PM, Andrea Gavana wrote:

I am sure the other issues observed on the Mac are still there, but I
really do need some help from Mac users to fix these.

--
Robin Dunn
Software Craftsman

2009/11/20 Robin Dunn:

I am sure the other issues observed on the Mac are still there, but I
really do need some help from Mac users to fix these.

Santa should get your baby a Mac Mini for Christmas, and then you can
borrow it until she is old enough to use it. :wink:

I think my wife will kill me if *another* computer finds its way in
our home :smiley: . Other than that, the only 2 experiences my little
daughter had with our 2 PCs left us with one "Shift" and one "comma"
keyboard keys half eaten :smiley:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 11/18/09 2:25 PM, Andrea Gavana wrote: