default colour setting in aui

Hi Andrea,

Any chance this patch would be acceptable?

So one can do this type of thing for a toolbar and similar for a :

         mgrArt = self.mainTB.GetArtProvider()
         mgrArt.SetDefaultColours(aglob.bgBaseColour)
         self.mainTB.SetArtProvider(mgrArt)

i.e. have a background colour different to the borrow default grey:)

Werner

P.S.
BTW, did you have a response from Robin? I wonder if he sees wxPython-dev postings from others?

auidefaultcolour.patch (4.09 KB)

Hi Werner,

Hi Andrea,

Any chance this patch would be acceptable?

So one can do this type of thing for a toolbar and similar for a :

   mgrArt = self\.mainTB\.GetArtProvider\(\)
   mgrArt\.SetDefaultColours\(aglob\.bgBaseColour\)
   self\.mainTB\.SetArtProvider\(mgrArt\)

i.e. have a background colour different to the borrow default grey:)

No problem in applying it, I think it's a very good idea and I'll
commit it this evening when I get home.

P.S.
BTW, did you have a response from Robin? I wonder if he sees wxPython-dev
postings from others?

I don't know. I guess he may be busy on his job, or relaxing at some
beach on a remote tropical island drinking daiquiris :slight_smile:

Hopefully he will get back to the Sphinx/documentation stuff at some
point. In the meanwhile, the documentation-building process is back on
track working following my latest SVN commit on Phoenix.

Andrea.

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

···

On 25 January 2012 14:52, werner wrote:

Just noticed that the patch doesn't override the colour for the toolbars created internally to aui, e.g. when one minimises a pane.

Werner

···

On 25/01/2012 15:07, Andrea Gavana wrote:

Hi Werner,

On 25 January 2012 14:52, werner wrote:

Hi Andrea,

Any chance this patch would be acceptable?

So one can do this type of thing for a toolbar and similar for a :

        mgrArt = self.mainTB.GetArtProvider()
        mgrArt.SetDefaultColours(aglob.bgBaseColour)
        self.mainTB.SetArtProvider(mgrArt)

i.e. have a background colour different to the borrow default grey:)

No problem in applying it, I think it's a very good idea and I'll
commit it this evening when I get home.

Hi Andrea,

···

On 25/01/2012 16:31, werner wrote:

On 25/01/2012 15:07, Andrea Gavana wrote:

Hi Werner,

On 25 January 2012 14:52, werner wrote:

Hi Andrea,

Any chance this patch would be acceptable?

So one can do this type of thing for a toolbar and similar for a :

        mgrArt = self.mainTB.GetArtProvider()
        mgrArt.SetDefaultColours(aglob.bgBaseColour)
        self.mainTB.SetArtProvider(mgrArt)

i.e. have a background colour different to the borrow default grey:)

No problem in applying it, I think it's a very good idea and I'll
commit it this evening when I get home.

Just noticed that the patch doesn't override the colour for the toolbars created internally to aui, e.g. when one minimises a pane.

I can't figure that one out, any chance you can have a look at it?

Werner

Hi Werner,

Hi Andrea,

Hi Werner,

Hi Andrea,

Any chance this patch would be acceptable?

So one can do this type of thing for a toolbar and similar for a :

   mgrArt = self\.mainTB\.GetArtProvider\(\)
   mgrArt\.SetDefaultColours\(aglob\.bgBaseColour\)
   self\.mainTB\.SetArtProvider\(mgrArt\)

i.e. have a background colour different to the borrow default grey:)

No problem in applying it, I think it's a very good idea and I'll
commit it this evening when I get home.

Just noticed that the patch doesn't override the colour for the toolbars
created internally to aui, e.g. when one minimises a pane.

I can't figure that one out, any chance you can have a look at it?

Sorry for the delay, I was out of town. I still haven't apply the
patch (my bad), but I can try to take a look at this issue as well in
the next few days. Internally, AuiManager simply calls something like
this when a pane is minimized:

minimize_toolbar = auibar.AuiToolBar(self.GetManagedWindow(), agwStyle=tbStyle)

So I am not sure how your changes may influence the internal handling
of minimized panes...

Again, thank you for taking the time to improve AGW.

Andrea.

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

···

On 30 January 2012 17:32, werner wrote:

On 25/01/2012 16:31, werner wrote:

On 25/01/2012 15:07, Andrea Gavana wrote:

On 25 January 2012 14:52, werner wrote:

Hi Werner,

Hi Andrea,

Any chance this patch would be acceptable?

So one can do this type of thing for a toolbar and similar for a :

   mgrArt = self\.mainTB\.GetArtProvider\(\)
   mgrArt\.SetDefaultColours\(aglob\.bgBaseColour\)
   self\.mainTB\.SetArtProvider\(mgrArt\)

i.e. have a background colour different to the borrow default grey:)

I have applied the patch in SVN. Unfortunately is quite a busy period
at work and I haven't had time to look into the detail as of why the
auto-created toolbars are not affected by your patch. Maybe next week
or over the week-end.

Thank you again for taking the time to create a patch!

Andrea.

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

···

On 25 January 2012 14:52, werner wrote:

Hi Andrea,

...

I have applied the patch in SVN. Unfortunately is quite a busy period
at work and I haven't had time to look into the detail as of why the
auto-created toolbars are not affected by your patch. Maybe next week
or over the week-end.

Thanks for applying the patches.

There is no urgency for the auto-created issue, will let you know in case I should figure it out.

Werner

···

On 09/02/2012 22:03, Andrea Gavana wrote:

Wouldn't that be nice... I have been super busy and have been letting wxPython-dev slide a little bit because I know that you guys can usually work things out for yourself. I have been able to give a little more attention to Phoenix over the last week or so, and hopefully I can get that attention level back up again, or at least get better about fitting it in between other tasks. I'll try to get myself thinking more about the Sphinx parts again too.

Andrea, while I'm thinking about it there is one thing I remember I should pass along before I forget about it. It would be nice if there was a way to tell it to simply exclude sections of the C++ docs. For example, the "wxTextCtrl and C++ Streams" section in the wxTextCtrl docs has no use at all for Python developers. Also, at least as of the last time I built the docs here the images for the logo on the top link bar and also the banner on the main page are missing.

···

On 1/25/12 6:07 AM, Andrea Gavana wrote:

P.S.
BTW, did you have a response from Robin? I wonder if he sees wxPython-dev
postings from others?

I don't know. I guess he may be busy on his job, or relaxing at some
beach on a remote tropical island drinking daiquiris :slight_smile:

--
Robin Dunn
Software Craftsman

Hi Robin,

P.S.
BTW, did you have a response from Robin? I wonder if he sees
wxPython-dev
postings from others?

I don't know. I guess he may be busy on his job, or relaxing at some
beach on a remote tropical island drinking daiquiris :slight_smile:

Wouldn't that be nice... I have been super busy and have been letting
wxPython-dev slide a little bit because I know that you guys can usually
work things out for yourself. I have been able to give a little more
attention to Phoenix over the last week or so, and hopefully I can get that
attention level back up again, or at least get better about fitting it in
between other tasks. I'll try to get myself thinking more about the Sphinx
parts again too.

Andrea, while I'm thinking about it there is one thing I remember I should
pass along before I forget about it. It would be nice if there was a way to
tell it to simply exclude sections of the C++ docs. For example, the
"wxTextCtrl and C++ Streams" section in the wxTextCtrl docs has no use at
all for Python developers. Also, at least as of the last time I built the
docs here the images for the logo on the top link bar and also the banner on
the main page are missing.

I'll take another look at the code and see what can be done to exclude
specific sections. I don't think it will be particularly complicated
as the sections themselves are contained in the Section class (so
excluding one should exclude all its descendants XML items).

It would be nice to have a list of unwanted sections/items so that I
can test if this approach works or not. Do you have any other example
of sections to exclude beside the "wxTextCtrl and C++ Streams" one?

P.S. BTW, I really thought you were on holiday... maybe it was the
Kenya effect :slight_smile:

Andrea.

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

···

On 14 February 2012 23:04, Robin Dunn wrote:

On 1/25/12 6:07 AM, Andrea Gavana wrote: