<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython">
    <title>gmane.comp.python.wxpython</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92978"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92977"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92976"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92975"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92974"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92973"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92972"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92971"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92970"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92969"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92968"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92967"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92966"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92965"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92964"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92963"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92962"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92961"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92960"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.wxpython/92959"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92978">
    <title>Problem with wxConfig &amp; wxPython Demo</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92978</link>
    <description>&lt;pre&gt;Hi All,

I had a problem which occurred with the wxPython demo that highlighted a
problem with wxConfig - when the demo had a problem reading the config
file it displayed a message, giving me the path and a details button -
the only trouble is that the error box only persisted for a few seconds
- presumably until the application terminated - this was not long enough
to read the file path.  Once I had managed to find the faulty file I
just needed to rename it to get things running again but I had to try
running the demo 5 or 6 times before I saw enough of the path.

Is there any way of, when an error is displayed, waiting until the error
has been read by the user before terminating the application - e.g.
making the error dialogue modal and giving it a go away button, (OK or
Cancel), in the case of a fatal error like this?

I am sure that I have seen errors like this before with other wx based
applications and they have been known to make an application unusable. 
Even worse uninstalling the demo and reinstall&lt;/pre&gt;</description>
    <dc:creator>Gadget/Steve</dc:creator>
    <dc:date>2012-05-22T09:39:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92977">
    <title>Re: Why does EVT_TREE_ITEM_HYPERLINK trigger on selection</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92977</link>
    <description>&lt;pre&gt;
Bad attempt. Shame on me for not testing it... I'll fix it when I get
back home tonight :-(

Andrea.

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

&lt;/pre&gt;</description>
    <dc:creator>Andrea Gavana</dc:creator>
    <dc:date>2012-05-22T07:16:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92976">
    <title>Re: wx.BitmapFromBuffer data for PNG format</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92976</link>
    <description>&lt;pre&gt;Thanks Robin,

Using wx.BitmapFromBufferRGBA, every thing is working fine.

Cheers

Prashant

On Monday, May 21, 2012 11:56:57 PM UTC+5:30, Robin Dunn wrote:

&lt;/pre&gt;</description>
    <dc:creator>King</dc:creator>
    <dc:date>2012-05-22T04:50:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92975">
    <title>Re: Why does EVT_TREE_ITEM_HYPERLINK trigger on selection</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92975</link>
    <description>&lt;pre&gt;Hi,

On 21 May 2012 11:21, Dag Wastberg  wrote:

I gave it a try and implemented it in SVN. Could you test it and see
if it works?

Andrea.

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

&lt;/pre&gt;</description>
    <dc:creator>Andrea Gavana</dc:creator>
    <dc:date>2012-05-21T20:05:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92974">
    <title>Re: wx.BitmapFromBuffer data for PNG format</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92974</link>
    <description>&lt;pre&gt;
Ah, I just noticed that you seem to be adding 4 values per pixel, 3 for 
RGB (presumably) and 1 with a constant value of 255 for the alpha 
(presumably).  I only noticed the 1st 3 lines before.  If that is your 
intent then you should be using wx.BitmapFromBufferRGBA instead of 
wx.BitmapFromBuffer, and use width*height*4 instead of the *3 I 
mentioned before.  Also you should double check that the values you are 
fetching from the source buffer are in RGB order.

&lt;/pre&gt;</description>
    <dc:creator>Robin Dunn</dc:creator>
    <dc:date>2012-05-21T18:26:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92973">
    <title>Re: wx.BitmapFromBuffer data for PNG format</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92973</link>
    <description>&lt;pre&gt;Chris,

I think the problem is in data order. Even in the code (link posted), at 
the bottom, before writing png image, some manipulation is going on but not 
able to understand it correctly.
Thanks for pointing out "result[1]" mistake, unfortunately it didn't helped.

Yes, Cython recently added support for array.array. I'll look into this 
later.

Robin,

I changed to char array instead of python's list, it works but results are 
pretty much same.

Cheers

Prashant

&lt;/pre&gt;</description>
    <dc:creator>King</dc:creator>
    <dc:date>2012-05-21T18:19:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92972">
    <title>Re: Possible to detect if control is on the screen or not?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92972</link>
    <description>&lt;pre&gt;Yes it is/should be see the demo for splitter window - that logs every
time the focus moves from the window(s) of the application to something
else.

Gadget/Steve

&lt;/pre&gt;</description>
    <dc:creator>Gadget/Steve</dc:creator>
    <dc:date>2012-05-21T18:04:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92971">
    <title>Re: Making ScrolledPanel scroll only vertically?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92971</link>
    <description>&lt;pre&gt;
It's because the ScrolledPanel is setting the virtual size based on the 
minimum size calculated by the sizer, and that is based on the best size 
reported by the static text.  So since the best size of a static text is 
based on how much space it takes to show the text without wrapping then 
that is what you get.  Passing scroll_x=False just means don't show that 
scrollbar, it has nothing to do with the virtual size of the scrolled 
window or the layout of the widgets.

You can try resetting the virtual size of the scrolled panel, although 
it wasn't designed with that in mind so there may be some glitches.  You 
can set the min width of the static text to be your desired width, then 
the sizer will use that value instead of the best width.  Or you can use 
wx.ScrolledWindow instead of ScrolledPanel, and set the virtual size and 
etc. how you prefer it.

&lt;/pre&gt;</description>
    <dc:creator>Robin Dunn</dc:creator>
    <dc:date>2012-05-21T17:10:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92970">
    <title>Re: Change in the appearance with OS</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92970</link>
    <description>&lt;pre&gt;
Since you define the size of the dialog at the beginning then it's 
possible that there isn't an extra size event after the sizers and 
widgets have been created, and so there is no automatic layout.  Try 
adding a call to self.SendSizeEvent() at the end of __init__.


&lt;/pre&gt;</description>
    <dc:creator>Robin Dunn</dc:creator>
    <dc:date>2012-05-21T17:09:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92969">
    <title>Re: wx.BitmapFromBuffer data for PNG format</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92969</link>
    <description>&lt;pre&gt;
You probably want to use result[0] for the first PyList_Append above.



The array module doesn't have a public C API so you won't be able to do 
exactly what you are trying to do there, however string objects are 
valid read-only buffer objects so the wx.BitmapFromBuffer will work with 
a string too.  So you can build an array of char (that is width*height*3 
bytes long) in C and then create a string object from it with 
PyString_FromStringAndSize.


&lt;/pre&gt;</description>
    <dc:creator>Robin Dunn</dc:creator>
    <dc:date>2012-05-21T17:08:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92968">
    <title>Re: Multiline Text Ctrl not processing enter key</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92968</link>
    <description>&lt;pre&gt;
Some styles can only be set when the widget is created because they may 
change how the native widget is created, or even which native widget is 
used.

&lt;/pre&gt;</description>
    <dc:creator>Robin Dunn</dc:creator>
    <dc:date>2012-05-21T17:07:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92967">
    <title>Re: wx.BitmapFromBuffer data for PNG format</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92967</link>
    <description>&lt;pre&gt;not entirely sure, but an idea or two:

On Mon, May 21, 2012 at 12:34 AM, King &amp;lt;animator333&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

why use a list? -- as you know, you'll need to use  a binary
compatible implimentation later, so I"d put those either in a
array.array object from the C++ (I'm pretty sure the C api is
documented), or even a string (or bytes object), or, in fact, you
could create an object that support the buffer protocol.

but none of that is probably the source of your problem.


do you have the data in the right order for an image? i.e. row-major
vs. column major? I'd experiment with that. IIRC, numpy natively
stores the data in a different order (height, width) vs. (width,
height) -- and numpy natively uses C order -- which you may be using
also. I"d look into that.

I also see that your C++ code is appending result[1] twice, then
result[2]. if you car converting from greyscale to RGB, wouldn't you
want to write each value three times?

It looks like you are trying te reduce dependencies, but PIL might be
helpfu&lt;/pre&gt;</description>
    <dc:creator>Chris Barker</dc:creator>
    <dc:date>2012-05-21T16:47:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92966">
    <title>Change in the appearance with OS</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92966</link>
    <description>&lt;pre&gt;Hi,
I have been using wxpython in fedora. I have written a small code that
displays a customtreectrl in a spliiter window. This was working fine
in Fedora but when the code was run in windows the dialog box is
displayed empty.
The main code is:

class TreeDialog(wx.Dialog):

    def __init__(self):

        wx.Dialog.__init__(self, None, 6, 'Filters',size = (500,600) )
        self.splitter = wx.SplitterWindow(self, -1)
        leftPanel = wx.Panel(self.splitter, -1)
        leftBox = wx.BoxSizer(wx.VERTICAL)
        self.__tree = TreeFilter(leftPanel, 1)
        leftBox.Add(self.__tree, -1, wx.GROW)
        self.__tree.Bind(CT.EVT_TREE_ITEM_CHECKED, self.checked)
        leftPanel.SetSizer(leftBox)

        rightPanel = wx.Panel(self.splitter, -1)
        rightBox = wx.BoxSizer(wx.VERTICAL)
        self.display = wx.StaticText(rightPanel, -1, '',
style=wx.ALIGN_LEFT)
        rightBox.Add(self.display, -1, wx.GROW)


        btnsizer = wx.StdDialogButtonSizer()
        btn = wx.Button(rightPanel, wx.ID_OK)
 &lt;/pre&gt;</description>
    <dc:creator>Sushma</dc:creator>
    <dc:date>2012-05-21T06:47:53</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92965">
    <title>Re: Import Error: No module named wordwrap</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92965</link>
    <description>&lt;pre&gt;You could try importing sys and then writing out sys.path to a file to see 
if there's a difference in path lookup. I don't know why there would be, 
but that might help in debugging it.

- Mike

&lt;/pre&gt;</description>
    <dc:creator>Mike Driscoll</dc:creator>
    <dc:date>2012-05-21T15:25:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92964">
    <title>Re: agw.AUI - pane hide/show</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92964</link>
    <description>&lt;pre&gt;Hi Andrea,

Thanks for the quick reply.

It has to do with:

wx.CallAfter(self.persistRegisterControls)

Just stepped through it in the debugger and noticed that the above 
causes the persist loading to be done after I did the hide/update stuff.

If I don't use CallAfter then the hide/show works fine.

I am sure I had a reason to put CallAfter in in the first place, but 
stupid me didn't comment why.

Will just have to keep an eye on this.

Thanks
Werner

&lt;/pre&gt;</description>
    <dc:creator>Werner</dc:creator>
    <dc:date>2012-05-21T15:00:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92963">
    <title>Re: agw.AUI - pane hide/show</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92963</link>
    <description>&lt;pre&gt;Hi Werner,

On 21 May 2012 15:45, Werner wrote:


Uhm, nothing that I can see at the moment... does it happen even if you do:

pl = self.view._mgr.GetPane("paneLog")
pl.Hide()
self.view._mgr.Update()

Without the other call to "Hide()"?

Does it happen if you change it like this:

pl = self.view._mgr.GetPane(self.paneLog)
pl.Hide()
self.view._mgr.Update()

?

I use dynamically shown/hidden panes all the times, so I guess there
is something strange going on...

Andrea.

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

&lt;/pre&gt;</description>
    <dc:creator>Andrea Gavana</dc:creator>
    <dc:date>2012-05-21T13:51:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92962">
    <title>agw.AUI - pane hide/show</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92962</link>
    <description>&lt;pre&gt;I can't figure out how to dynamical show/hide a pane.

I do:
         self._mgr.AddPane(self.paneLog, aui.AuiPaneInfo().
                           Name("paneLog").Caption(_("vinoXML import 
error/warning log - read-only")).
                           Bottom().
                           Layer(2).
                           Position(0).
                           CaptionVisible(True).
                           CloseButton(False).
                           MaximizeButton(True).
                           MinimizeButton(True))

....

         pl = self.view._mgr.GetPane("paneLog")
         pl.Hide()
         self.view.paneLog.Hide()

If I now check pl.IsShown() and self.view.paneLog.IsShown() they both 
return "False", now I do:

self.view._mgr.Update()

And the status changes to Shown and the panel is obviously shown.

What am I missing?

Werner

&lt;/pre&gt;</description>
    <dc:creator>Werner</dc:creator>
    <dc:date>2012-05-21T13:45:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92961">
    <title>Re: Possible to detect if control is on the screen or not?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92961</link>
    <description>&lt;pre&gt;
Hm, I wouldn't known when to change it though unless I checked that every
time the timer event is fired which I'd rather avoid. Hoping there will be
a an event.

When's EVT_ACTIVATE supposed to fire? is it based on the app focus?



&lt;/pre&gt;</description>
    <dc:creator>Paul Wiseman</dc:creator>
    <dc:date>2012-05-21T12:16:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92960">
    <title>Re: Possible to detect if control is on the screen or not?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92960</link>
    <description>&lt;pre&gt;You could try, in the timer handler, setting the timer duration based on the results of wx.GetApp().IsActive()

Gadget/Steve

-----Original Message-----

From: Paul Wiseman
Sent: 21 May 2012 11:56:40 GMT
To: wxpython-users&amp;lt; at &amp;gt;googlegroups.com
Subject: Re: [wxPython-users] Possible to detect if control is on the screen or not?

On 21 May 2012 12:19, Gadget/Steve &amp;lt;GadgetSteve&amp;lt; at &amp;gt;live.co.uk&amp;gt; wrote:

Thats a good idea, just had a play but I can't get either of those events
to fire. I've tried binding both to the panel that does the drawing and to
the main frame but I've not seen 1 event fire after minimising, moving
focus to other windows etc. am I doing something wrong?



--
To unsubscribe, send email to wxPython-users+unsubscribe&amp;lt; at &amp;gt;googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

&lt;/pre&gt;</description>
    <dc:creator>Steve Barnes</dc:creator>
    <dc:date>2012-05-21T12:07:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92959">
    <title>Re: Possible to detect if control is on the screen or not?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92959</link>
    <description>&lt;pre&gt;
Thats a good idea, just had a play but I can't get either of those events
to fire. I've tried binding both to the panel that does the drawing and to
the main frame but I've not seen 1 event fire after minimising, moving
focus to other windows etc. am I doing something wrong?



&lt;/pre&gt;</description>
    <dc:creator>Paul Wiseman</dc:creator>
    <dc:date>2012-05-21T11:56:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.wxpython/92958">
    <title>Re: Possible to detect if control is on the screen or not?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.wxpython/92958</link>
    <description>&lt;pre&gt;Have you tried wx.EVT_ACTIVATE and/or wx.EVT_ACTIVATE_APP while it
wouldn't tell you if the window is (fully) visible or not it would at
least tell you if the user is actively using the application allowing
you to drop the update rate when the user is not actively interested
in/using your application.  I would suggest using a lower polling rate
rather than stopping altogether when the user is on another application.

Gadget/Steve

&lt;/pre&gt;</description>
    <dc:creator>Gadget/Steve</dc:creator>
    <dc:date>2012-05-21T11:19:50</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.wxpython">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.wxpython</link>
  </textinput>
</rdf:RDF>

