NoteBook question

Hi list,

I wonder if there's a possibility to use the space to he right of
up tabs of a NoteBook; I mean is there a possibility for a sizer
placed up to the NB to infringe on this area?

JY

···

--
Faith goes out through the window when beauty comes in at the door.

It might be possible to do it without a sizer, or with a sizer that you manage yourself instead of assigning it to the notebook, but I would not recommend either approach. It will likely confuse your users who will not expect to have widgets in that area other than the tabs, and it will likely be vulnerable to platform differences or perhaps even in different scenarios on a single platform due to things like system upgrades or changing themes.

···

On 12/4/11 8:08 PM, Jean-Yves F. Barbier wrote:

Hi list,

I wonder if there's a possibility to use the space to he right of
up tabs of a NoteBook; I mean is there a possibility for a sizer
placed up to the NB to infringe on this area?

--
Robin Dunn
Software Craftsman

If I understood the question correctly, the OP may want to try and use
wx.lib.agw.auinotebook, which allows you to place custom buttons to
the rightmost and/or leftmost part of the tabs area. With its
AddTabAreaButton you can customize quite a lot. There is also an
example of it in the wxPython demo.

http://xoomer.virgilio.it/infinity77/AGW_Docs/aui.auibook.AuiNotebook.html?highlight=auinotebook#aui.auibook.AuiNotebook.AddTabAreaButton

Andrea.

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

···

On 5 December 2011 22:13, Robin Dunn wrote:

On 12/4/11 8:08 PM, Jean-Yves F. Barbier wrote:

Hi list,

I wonder if there's a possibility to use the space to he right of
up tabs of a NoteBook; I mean is there a possibility for a sizer
placed up to the NB to infringe on this area?

It might be possible to do it without a sizer, or with a sizer that you
manage yourself instead of assigning it to the notebook, but I would not
recommend either approach. It will likely confuse your users who will not
expect to have widgets in that area other than the tabs, and it will likely
be vulnerable to platform differences or perhaps even in different scenarios
on a single platform due to things like system upgrades or changing themes.

Thanks for the link Andrea, but I just tried to modify the demo and
it returns: 'AuiNotebook' object has no attribute 'AddTabAreaButton';
a further research w/ pydoc also tells it is unknown.

But that also had a side effect: I found that aui, that I didn't
watch closely, has a very much simplier syntax than regular wx.
I'll give it a try.

JY

···

On Mon, 5 Dec 2011 22:39:45 +0100 Andrea Gavana <andrea.gavana@gmail.com> wrote:

If I understood the question correctly, the OP may want to try and use
wx.lib.agw.auinotebook, which allows you to place custom buttons to
the rightmost and/or leftmost part of the tabs area. With its
AddTabAreaButton you can customize quite a lot. There is also an
example of it in the wxPython demo.

http://xoomer.virgilio.it/infinity77/AGW_Docs/aui.auibook.AuiNotebook.html?highlight=auinotebook#aui.auibook.AuiNotebook.AddTabAreaButton

Andrea.

--
A male mathematician is someone who can count to twenty-one without
unzipping his fly.

It might be possible to do it without a sizer, or with a sizer that you
manage yourself instead of assigning it to the notebook, but I would not
recommend either approach. It will likely confuse your users who will
not expect to have widgets in that area other than the tabs,

Yesbutno: à the upper rightmost part of the frame, there's a pile of
information, so putting it here wouldn't confuse (and the frame is
large enough to have a large gap between the last tab and this
hypothetical button).
This is just a matter of recovering place, as I'd like some
important info being visible any time on this frame.

and it will
likely be vulnerable to platform differences or perhaps even in
different scenarios on a single platform due to things like system
upgrades or changing themes.

Effectively, if it raise some random behavior in the same OS this is
much a concern - however for other OS I already see strange things
even in the demo codes: if macOS... if MSW...; so parts of the
compatibility seems to be evanescent from base.

···

On Mon, 05 Dec 2011 13:13:12 -0800 Robin Dunn <robin@alldunn.com> wrote:

--
Poverty must have its satisfactions, else there would not be so many
poor people.
    -- Don Herold

Hi Jean-Yves,

If I understood the question correctly, the OP may want to try and use
wx.lib.agw.auinotebook, which allows you to place custom buttons to
the rightmost and/or leftmost part of the tabs area. With its
AddTabAreaButton you can customize quite a lot. There is also an
example of it in the wxPython demo.

http://xoomer.virgilio.it/infinity77/AGW_Docs/aui.auibook.AuiNotebook.html?highlight=auinotebook#aui.auibook.AuiNotebook.AddTabAreaButton

Andrea.

Thanks for the link Andrea, but I just tried to modify the demo and
it returns: 'AuiNotebook' object has no attribute 'AddTabAreaButton';
a further research w/ pydoc also tells it is unknown.

Then I guess you are using an older version of wxPython. I don't
remember exactly when AddTabAreaButton was added but I believe it
should be there in 2.8.12 and for sure in the 2.9 series. Otherwise
you may just grab the SVN version of it from here:

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/agw/

And use it in place of the one provided by the wxPython installer.

But that also had a side effect: I found that aui, that I didn't
watch closely, has a very much simplier syntax than regular wx.
I'll give it a try.

I am happy you found it useful.

Andrea.

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

···

On 6 December 2011 07:15, Jean-Yves F. Barbier wrote:

On Mon, 5 Dec 2011 22:39:45 +0100 > Andrea Gavana <andrea.gavana@gmail.com> wrote:

> Thanks for the link Andrea, but I just tried to modify the demo and
> it returns: 'AuiNotebook' object has no attribute 'AddTabAreaButton';
> a further research w/ pydoc also tells it is unknown.

Then I guess you are using an older version of wxPython. I don't
remember exactly when AddTabAreaButton was added but I believe it
should be there in 2.8.12 and for sure in the 2.9 series. Otherwise
you may just grab the SVN version of it from here:

I use the regular Debian sid package, which is: 2.8.12.1-3

http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/AGW/agw/

And use it in place of the one provided by the wxPython installer.

Hmm, I don't like very much messing with an original packages; by the
past it happens and long enough to forget after that, I spent hours
to find what was wrong with my system.

I'll check dependencies first to see if I risk a breakage, and
check if Debian scripts are part of the dev tarball - if so, I'll
build packages and install them (but 2.9 must also work on stable
as I develop on unstable but pgm will run on stable).

> But that also had a side effect: I found that aui, that I didn't
> watch closely, has a very much simplier syntax than regular wx.
> I'll give it a try.

I am happy you found it useful.

I'm pleased you're happy °<;-)

JY

···

On Tue, 6 Dec 2011 09:08:08 +0100 Andrea Gavana <andrea.gavana@gmail.com> wrote:
--