NotebookCtrl For wxPython ;-)

Hello NG,

      I have received an email regarding NotebookCtrl and I would like to
kindly ask to someone of you that is using Linux/Unix just to test the demo
that comes with NotebookCtrl and report if it works as it should or not.
The problem is that on Mac it does not work (the tabs are not shown at
all), and I don't know how it works on other platforms then mine (Windows
XP/2000). Is there any kind soul that can report NotebookCtrl behavior on
other platforms (Unix/Linux etc..)?

Thank you a lot.

Andrea.

···

_______________________________________________
Andrea Gavana
Reservoir Engineer
MOGI ? Reservoir Characterization and Modeling Dept.
ENI S.p.A. ? Exploration & Production Division
Via Emilia, 1 ? 20097 San Donato Milanese (MI) ? Italy
Phone: +39 02 520 62972
Fax: +39 02 520 61824
E-mail: andrea.gavana@agip.it
Restyled Internet Site: http://xoomer.virgilio.it/infinity77/
____________________________________________________

Eni S.p.A.
Sede legale in Roma,
Piazzale Enrico Mattei 1, 00144 Roma
Tel. centralino: +39 06598.21
www.eni.it
Capitale sociale € 4.002.934.326 i.v.
Registro Imprese di Roma,
Codice Fiscale 00484960588
Part. IVA 00905811006
R.E.A. Roma n. 756453

Hello NG,

      I have received an email regarding NotebookCtrl and I would like to
kindly ask to someone of you that is using Linux/Unix just to test the demo
that comes with NotebookCtrl and report if it works as it should or not.
The problem is that on Mac it does not work (the tabs are not shown at
all), and I don't know how it works on other platforms then mine (Windows
XP/2000). Is there any kind soul that can report NotebookCtrl behavior on
other platforms (Unix/Linux etc..)?

On my system (Linux Debian 3.1, wx 2.6.1 self compiled) all the functions work well, like the win platform.

Thank you a lot.

Thanks to you for the control...

Andrea.

Michele

···

andrea.gavana@agip.it wrote:

Hello Michele & NG,

> I have received an email regarding NotebookCtrl and I would like

to

> kindly ask to someone of you that is using Linux/Unix just to test the

demo

> that comes with NotebookCtrl and report if it works as it should or not.
> The problem is that on Mac it does not work (the tabs are not shown at
> all), and I don't know how it works on other platforms then mine

(Windows

> XP/2000). Is there any kind soul that can report NotebookCtrl behavior

on

> other platforms (Unix/Linux etc..)?

On my system (Linux Debian 3.1, wx 2.6.1 self compiled) all the
functions work well, like the win platform

Thanks a lot to have tried it on Linux, at least now I know it works on
Windows and Linux :wink:
The problem with MacOS reminds me the period of FoldPanelBar, when the
caption (the Bar) was not visible because wxMac was not smart enough to
understand that wx.DefaultSize means nothing for a wx.PyControl... and I
remember that Robin has substituted wx.DefaultSize with wx.Size(20, 20) in
the __init__ method of CaptionBar in order to force wxMac to understand what
CaptionBar was...
I would try the same for NotebookCtrl, but I don't have Mac and I don't know
a word about Mac, so I can not test it anyway...
If I am not asking too much, is there a wxPython MacOS user that could try
to download NotebookCtrl from:

http://xoomer.virgilio.it/infinity77/eng/freeware.html#notebookctrl

and try to substitute in line 237:

def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition,
                 size=wx.DefaultSize, style=NC_DEFAULT_STYLE,
                 validator=wx.DefaultValidator, name="TabCtrl"):

with:

def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition,
                 size=wx.Size(20, 20), style=NC_DEFAULT_STYLE,
                 validator=wx.DefaultValidator, name="TabCtrl"):

and please report if tabs are shown or not (by running the included demo)?
And maybe, if it works, if it is possible to send some screeshot of it
(obviously, you can send them directly to me to avoid too much "traffic" on
the NG)?

Thanks a lot, NG, for all your kind testing and bug reports/features request
activity.

Andrea.

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

andrea.gavana@agip.it a écrit :

Hello NG,

     I have received an email regarding NotebookCtrl and I would like to
kindly ask to someone of you that is using Linux/Unix just to test the demo
that comes with NotebookCtrl and report if it works as it should or not.
The problem is that on Mac it does not work (the tabs are not shown at
all), and I don't know how it works on other platforms then mine (Windows
XP/2000). Is there any kind soul that can report NotebookCtrl behavior on
other platforms (Unix/Linux etc..)?

Thank you a lot.

Andrea.

Hello Andrea,

I have tested it under Linux Mandrake (Mandriva, now) 10.1 and all works fine !...

    * wxPython-common-gtk2-ansi-2.6.1.0-mdk101_py2.3
    * python-2.3.4-6.2.101mdk
    * wxPython2.6-gtk2-ansi-2.6.1.0-mdk101_py2.3

Just a moment, I had an error message, but I don't know when and I can't reproduce it !...

Error message :
Traceback (most recent call last):
  File "/X.BASIC/USR/hugues/tmp/NotebookCtrl/NotebookCtrl/NotebookCtrl.py", line 1333, in OnMouseLeftDown
    self.SetSelection(page)
  File "/X.BASIC/USR/hugues/tmp/NotebookCtrl/NotebookCtrl/NotebookCtrl.py", line 465, in SetSelection
    self.EnsureVisible(self._selection)
  File "/X.BASIC/USR/hugues/tmp/NotebookCtrl/NotebookCtrl/NotebookCtrl.py", line 481, in EnsureVisible
    spinval = self._spinbutton.GetValue()
AttributeError: 'TabCtrl' object has no attribute '_spinbutton'

You will find a screenshot of the test : http://www.agorinfo.fr/notebookctrl.PNG

Friendly.

···

--

Hugues JEAN-BAPTISTE (hjb@agorinfo.fr)
AGORINFO S.A. (http://www.agorinfo.fr)