<?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://blog.gmane.org/gmane.comp.python.wxpython">
    <title>gmane.comp.python.wxpython</title>
    <link>http://blog.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://comments.gmane.org/gmane.comp.python.wxpython/93018"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/93017"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/93016"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/93010"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/93009"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/93007"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92997"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92991"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92990"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92989"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92979"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92978"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92966"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92962"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92955"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92951"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92950"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92947"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92938"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.wxpython/92929"/>
      </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://comments.gmane.org/gmane.comp.python.wxpython/93018">
    <title>I have error 3 try to open any file in my application!</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/93018</link>
    <description>&lt;pre&gt;I'm trying to open files the issue is that the path or root directory
is not found
here some of code

if self.dlg.ShowModal() == wx.ID_OK:
            self.filename = self.dlg.GetFilename()
            self.dirname = self.dlg.GetDirectory()

            path = open(os.path.join(self.dirname, self.filename))
            self.file = editor.EditorPanel(self.mainntbk, -1)
            self.file.LoadFile(path.read())
            self.mainntbk.AddPage(self.file, ""+self.filename)
        self.dlg.Destroy()

&lt;/pre&gt;</description>
    <dc:creator>iozk_Live</dc:creator>
    <dc:date>2012-05-26T15:03:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/93017">
    <title>Mac-noob advice for installing</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/93017</link>
    <description>&lt;pre&gt;I'm helping a friend at a distance set up a Python/wxPython (and other
libraries) environment on his Mac (OSX Lion)...he was able to get
wxPython to work using the Mac-installed version of Python but it
might be balking now for Matplotlib, so I'm going to suggest he
install the Python.org version of Python 2.7.3 and try again.

Here's my Mac-noob question:  is there anything tricky he needs to
know about how to do this, or is it fairly self-explanatory?  I'd
think he'd just install the Python.org Python then the wxPython
install would somehow prompt him to install wxPython *under the
Python.org version of Python* (and the same for Matplotlib and other
libraries).  Is that about right?

Just reality checking before I send him on a wild goose chase.
Thanks,
Che

&lt;/pre&gt;</description>
    <dc:creator>C M</dc:creator>
    <dc:date>2012-05-25T20:54:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/93016">
    <title>Select() for ListCtrl not same as mouse-click-select?</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/93016</link>
    <description>&lt;pre&gt;I have a ListCtrl (REPORT_MODE and SINGLE_SEL). The user can click in this 
to highlight an entry in it and it appears reversed.

There are times where I want to change the selected entry programmatically. 
I can do this with:

    across_clues.Focus(idx)
    across_clues.Select(idx)

(the Focus() makes sure the selected item is currently scrolled to; the 
Select() selects it). 

This works, but the selection appearance is different here--it's only 
mildly highlighted with a light grey background.

Is there a way to programmatically choose the "mouse selection" appearance?

I've come across posts here that suggest you can select things with

    across_clues.SetItemState(idx, wx.LIST_STATE_SELECTED, 
wx.LIST_STATE_SELECTED)

But this just seems to do the same thing as list.Select(...)

(Mac OSX; 2.9, Carbon)

Thanks!
 

&lt;/pre&gt;</description>
    <dc:creator>Joel Burton</dc:creator>
    <dc:date>2012-05-25T19:11:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/93010">
    <title>Interrupting computation</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/93010</link>
    <description>&lt;pre&gt;Guys,

I know this is a topic for the Python list, not the wxPython, but you 
guys are so ressourceful that I dare submitting my problem to you.
As in most of the software, an 'Cancel computation' button is required 
and I have trouble to make it work clean.

Here is how my application works. The Cancel computation button is, of 
course, in the main thread.

                          MainThread (mostly the GUI)
                               |
                       ComputationThread1 (threading.Thread)
      at the end of run(), wx.CallAfter(), starts the next thread
                               |
                       ComputationThread2 (threading.Thread)
                               |
                      StartProcesses (a regular class)
                      |        |        |
                     P1       P2       P3  (those are 
multiprocessing.Process objects)

     etc.

In StartProcesses, I define a multiprocessing.Manager object to collect 
the list of PIDs, what is done in each process using os.getpid(). 
StartProcesses has also the run() method that creates P1,P2,P3 and uses 
the join() method to make sure they are all terminated before going further.

Now, cancelling the computation: for processes, I get the Manager object 
from StartProcesses and kill each process using os.kill(pid, 3). Not 
sure the signal is the good one (I'm on Windows). For the thread, I turn 
a flag off so that it knows the computation is interrupted. Basically, 
it goes to wx.CallAfter() and there, instead of starting the next 
thread, I just stop the computation workflow.

After some 'hit my head against the nearest wall' sessions, it works 
more or less: when I cancel the computation, I get all processes (P1, 
...) killed (at least, I hope, don't really know how to check), and only 
the MainThread is still alive (I check this by using threading.enumerate()).

Now the problem: if I look at Windows Task manager -&amp;gt; Processes, I have 
only one python.exe process when I start the application. When I launch 
the computation, I get another one, than a few more when it gets to 
running P1, P2, etc. When I cancel the computation, as all processes P1, 
etc. and the ComputationThread are terminated, I should get back to only 
one python process, but no, there are 2 of them! So, I'd like to know 
why there is an extra python process still running, and what it is ??? 
When I quit the application, everything is gone (at least), but now, if 
I do compute/cancel several times, without quitting the application, 
everytime one extra python process is added, so after 3 loops, for 
example, I have 4 python processes running.

Sorry, this is a bit complicated, but if anyone has a hint, that would 
be great.

Thanks,

Raphael

&lt;/pre&gt;</description>
    <dc:creator>Raphael Mayoraz</dc:creator>
    <dc:date>2012-05-25T13:10:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/93009">
    <title>TwoStageCreation Initialization</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/93009</link>
    <description>&lt;pre&gt;Hello,

I'm trying to add a custom listcontrol to an XRC dialog following the 
TwoStageCreation &amp;lt;http://wiki.wxpython.org/TwoStageCreation&amp;gt; description in 
the wiki.
As suggested in the example, I am adding columns to my control in the 
wx.EVT_WINDOW_CREATE handler.
However, I don't understand at which point I can safely use the created 
widget, i.e. add items to the columns.
In the following example application where a dialog is loaded when the user 
presses a button


import wx
    dlg.ShowModal();



and the dialog resource contains a MyListControl of this form

import wx


I would like to add items to the list's columns at the point where 'adding 
items' is printed.
(I can't do it in OnCreate as it needs additional information)
However, this does not work, because the EVT_WINDOW_CREATE handler is 
called afterwards on Linux.
So where is the place to safely add items after OnCreate?

thanks in advance...
Patrick

&lt;/pre&gt;</description>
    <dc:creator>Patrick Ruoff</dc:creator>
    <dc:date>2012-05-25T09:16:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/93007">
    <title>Mouse middle button has strange effect in grids</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/93007</link>
    <description>&lt;pre&gt;The middle button seems to have a strange effect in grids. In particular, if I
hold it down it creates a visual selection of cells, like a range selection, but
that does not trigger a EVT_GRID_RANGE_SELECT event.

What I would like to do is that my grid completely ignores all click events on
the middle button. I have tried to catch EVT_MIDDLE_DOWN, EVT_MIDDLE_UP,
EVT_MIDDLE_DCLICK events. If I bind them to the grid, using
my_grid.Bind(EVT_MIDDLE_DOWN, my_event_handler), for example, I do capture some
events, but not all of them. I have not been able to figure out the logic behind
what events are captured and what events are not. If I bind them to the grid
window, using my_grid.GetGridWindow().Bind(EVT_MIDDLE_DOWN, my_event_handler),
for example, I do catch all middle button events, but even if I don't propagate
them (not using event.Skip()), a visual selection is still created.

Does anyone know a solution to that problem?

Thank you for your help.

Stéphane


&lt;/pre&gt;</description>
    <dc:creator>Stéphane Larouche</dc:creator>
    <dc:date>2012-05-24T22:25:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92997">
    <title>Momentary button</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92997</link>
    <description>&lt;pre&gt;Am I right in thinking that wxButton cannot bind in a momentary fashion,
ie trigger an event when the mouse button is pressed (on the button),
and another when it is released?  I have tried to bind it using
wx.EVT_LEFT_DOWN, but the event is not triggered.  I get the feeling
that the only event that can be detected is that the mouse button has
been clicked and released.  Is that correct?

If that is so (surprising) I guess I have to detect mouse hover over the
button AND left button down.  Seems a little clumsy maybe?

Greg

&lt;/pre&gt;</description>
    <dc:creator>Greg - ZL3IX</dc:creator>
    <dc:date>2012-05-24T09:11:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92991">
    <title>Setting Focus to Grid when Clicking on Grid Label</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92991</link>
    <description>&lt;pre&gt;Hi wxPython users:

I'm not sure if this is a feature, or a bug. I have a Grid control and 
TextCtrl on the same panel. I expect the focus to shift to the Grid control 
when the user clicks on a row or column label, but it does not. Keyboard 
operations are still directed to the last active control, which is a 
TextCtrl in my case. As a result, a Grid row is highlighted, but keystrokes 
that might be necessary to operate on the Grid (e.g. CTRL-C to copy a row) 
are directed to the TextCtrl. The user does not expect this and is shocked 
to see the text control changed when they thought they were working on the 
Grid control.

This issue has been reported before on this group: 
https://groups.google.com/forum/?fromgroups#!searchin/wxpython-users/grid$20set$20focus/wxpython-users/QL0lKmY2LoM/mM8zkG-LOQMJ

I have attached the code from the aforementioned post, modified just 
slightly, to reproduce the problem. Run App1.py and note the TextCtrl has 
the focus. Click a grid row label and note the TextCtrl still has focus. 
Now press an alpha-numeric key and observe the character is inserted in the 
TextCtrl.

To work around the "problem", I call Grid.SetFocus() in mouse click event 
handlers. To see this, uncomment the code beneath the UNCOMMENT TO FIX 
comment.

Is this a feature or a bug?

Environment: Windows XP, wxPython 2.8.12.1, Python 2.7.2 (default, Jun 12 
2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32

Thanks.

&lt;/pre&gt;</description>
    <dc:creator>Jay</dc:creator>
    <dc:date>2012-05-24T13:28:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92990">
    <title>dc.DrawText performance issues</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92990</link>
    <description>&lt;pre&gt;I'm drawing a network graph with wx.PaintDC. For each link in my graph
I draw the source and destination port numbers on a box over the link
30pixels away from the endpoints. This works fine when I'm only
drawing the ports for a single link, but when I draw the ports for all
of the links (I'm testing on tree with 12 links) I get a major
performance hit. What strategies can I use to get my graph back to a
usable state?

    # If extra info is desired draw ports
    if link.hover or link.info:
        dc.SetPen(wx.Pen(wx.Colour(58,58,58), 1))
        dc.SetBrush(wx.Brush(wx.Colour(255,255,255)))

        # Draw srcport
        sx, sy = gmath.PointOnLine(dstpos, srcpos, -30)
        ss = str(link.srcport)
        sw, sh = dc.GetTextExtent(ss)
        dc.DrawRectangle(sx-3, sy-3, sw+6, sh+6)
        # Draw dstport
        dx, dy = gmath.PointOnLine(srcpos, dstpos, -30)
        ds = str(link.dstport)
        dw, dh = dc.GetTextExtent(ds)
        dc.DrawRectangle(dx-3, dy-3, dw+6, dh+6)

        dc.DrawText(ss, sx, sy)
        dc.DrawText(ds, dx, dy)

&lt;/pre&gt;</description>
    <dc:creator>Jonathan</dc:creator>
    <dc:date>2012-05-23T16:42:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92989">
    <title>Paste and delete bug in wx.lib.intctrl.IntCtrl?</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92989</link>
    <description>&lt;pre&gt;Two issues:

1. If I paste non-numeric text, such as "max" using the context menu Paste, 
the non-numeric text is inserted. I think this is incorrect behavior, but 
worse an exception is raised, as follows:

    Traceback (most recent call last):
      File 
"C:\Programs\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\intctrl.py", 
line 474, in OnText
        value = self.GetValue()
      File 
"C:\Programs\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\intctrl.py", 
line 490, in GetValue
        return self._fromGUI( wx.TextCtrl.GetValue(self) )
      File 
"C:\Programs\Python27\lib\site-packages\wx-2.8-msw-unicode\wx\lib\intctrl.py", 
line 782, in _fromGUI
        return long( value )
    ValueError: invalid literal for long() with base 10: '0max'

2. If I cut or delete the control's value using the context menu Cut or 
Delete, an empty string value is left in the control. This is an error 
because the IntCtrl option allow_none is False.

To reproduce, run the wxPython Demo from the command line and launch the 
IntCtrl demo. Now perform the operations enumerated above.

Some quick debugging shows that the "overridden" methods Cut() and Paste() 
are not called, but I'm thinking the original author expected them to be.

This seems like an issue to me. Anyone care to confirm if this is bug? Any 
suggestions for a work around?

Environment:
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] 
on win32
Windows XP
wxPython 2.8.12.1

&lt;/pre&gt;</description>
    <dc:creator>Jay</dc:creator>
    <dc:date>2012-05-23T21:17:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92979">
    <title>textctrl multiline errors on linux</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92979</link>
    <description>&lt;pre&gt;Hi,

I'm using Fedora 16 with wxPython 2.9.3.1 and I'm having problems setting a 
textctrl to be multiline. It works fine on both Windows 7 and Fedora 16 if 
I do this...

text = wx.TextCtrl(frame, -1, 'test', size=(200,200), style=wx.TE_MULTILINE)

However, if I do it this way it only works on Windows 7 but throws 
errors/warnings on Fedora 16...

text = wx.TextCtrl(frame, -1, 'test', size=(200,200))
text.SetWindowStyle(wx.TE_MULTILINE)

This is the warning I get on Linux...
(debug.py:2094): GLib-GObject-WARNING **: invalid cast from `GtkEntry' to 
`GtkTextView'

I first noticed this using XRC to define a textctrl to be multiline but it 
threw a different message on Linux...
wx._core.PyAssertionError: C++ assertion "IsSingleLine()" failed at 
/tools/wxPython-src-2.9.3.1/src/gtk/textctrl.cpp(828) in GetEditable(): 
shouldn't be called for multiline

Am I doing something wrong here?

Thanks,
Adam

&lt;/pre&gt;</description>
    <dc:creator>blissend</dc:creator>
    <dc:date>2012-05-22T16:06:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92978">
    <title>Problem with wxConfig &amp; wxPython Demo</title>
    <link>http://comments.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 reinstalling it - my first option -
didn't remove the configuration file that contained the fault.

wx python version 2.8.12.1 (msw-unicode)
demo version ditto.

Gadget/Steve

&lt;/pre&gt;</description>
    <dc:creator>Gadget/Steve</dc:creator>
    <dc:date>2012-05-22T09:39:08</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92966">
    <title>Change in the appearance with OS</title>
    <link>http://comments.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)
        btn.SetDefault()
        btnsizer.AddButton(btn)

        btn = wx.Button(rightPanel, wx.ID_CANCEL)
        btnsizer.AddButton(btn)
        btnsizer.Realize()
        rightBox.Add(btnsizer, 0, wx.ALIGN_CENTER_VERTICAL|wx.ALL, 5)
        rightPanel.SetSizer(rightBox)

        self.splitter.SplitVertically(leftPanel, rightPanel)
        self.Centre()


Where TreeFilter is the customtreectrl that was written in a seperate
class.

Please help me in understanding the problem.

&lt;/pre&gt;</description>
    <dc:creator>Sushma</dc:creator>
    <dc:date>2012-05-21T06:47:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92962">
    <title>agw.AUI - pane hide/show</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.python.wxpython/92955">
    <title>wx.BitmapFromBuffer data for PNG format</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92955</link>
    <description>&lt;pre&gt;Hi,

I am writing a python module for the following utility:
https://github.com/wdas/SeExpr/blob/master/src/demos/imageSynth/imageSynth.cpp
 

For pixel data I am generating a list like this:

PyList_Append(list, Py_BuildValue("i", (unsigned 
char)clamp(result[1]*256.)));
PyList_Append(list, Py_BuildValue("i", (unsigned 
char)clamp(result[1]*256.)));
PyList_Append(list, Py_BuildValue("i", (unsigned 
char)clamp(result[2]*256.)));
PyList_Append(list, Py_BuildValue("i", 255));

In python module:

mlist = seexpr("noise(10*$u,10*$v)", width, height)
bytes = array.array('B', mlist)
rgbBmp = wx.BitmapFromBuffer(width, height, bytes)
rgbBmp.SaveFile("test.png", wx.BITMAP_TYPE_PNG)

The resulting png is not coming properly. I have attached both the images 
here. I think I have to further manipulate the data order in list but no 
clue.
I would also appreciate if some one point me out how to write python's 
array of "B" type in 'C' for above situation. I don't want to use numpy's 
array
for extra dependency.

Cheers

Prashant

&lt;/pre&gt;</description>
    <dc:creator>King</dc:creator>
    <dc:date>2012-05-21T07:34:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92951">
    <title>Import Error: No module named wordwrap</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92951</link>
    <description>&lt;pre&gt; 

I'm currently working on two wxPython applications – one I'm developing 
myself, and the other is Open Stereo, described by Carlos Grohmann on this 
list last week. Once again, I'm baffled (a rather common state for me, 
unfortunately)


 I have tested both applications on Ubuntu, Kubuntu, and LXCE in the 11.10 
versions, and they both worked. In addition, Open Stereo works on Python 
2.7 in my Windows 7 partition.


 Recently I upgraded to Ubuntu 12.04, including the KDE version. At that 
point, Open Stereo ceased working. Opening from the command line, I got the 
following error message:


 * ...from wx.lib.wordwrap import wordwrap*

*ImportError: No module named wordwrap*


 The relevant modules imported in the offending source file are:


 *import wx*

*import os, sys, csv*

*from wx.lib.pubsub import Publisher as pub*

*import types as types*

*from wx.lib.wordwrap import wordwrap*

*import matplotlib as mpl*


 Wondering if somehow wxPython had been corrupted, I transferred the line

*from wx.lib.wordwrap import wordwrap*

to my own application. It started up with no errors!


 Both applications are in adjacent directories in my *
/home/Documents?WorkRelated* folder, so I don't see any path issues. I have 
the zipped version of both Open Stereo and the current wxPython in my 
Downloads folder; I reinstalled both of them, but nothing changed.


 Sorry for the long-winded text, but I'm stymied. How can a module from the 
same toolkit be nonexistent for one application yet available for another 
one right next door?


 It still works on Windows, btw, but I really don't want to shift my work 
over unless I absolutely have to. Any hints would be appreciated.  Right 
now I feel like the blindfolded kid searching for the pinata.

&lt;/pre&gt;</description>
    <dc:creator>llanitedave</dc:creator>
    <dc:date>2012-05-20T03:26:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92950">
    <title>Multiline Text Ctrl not processing enter key</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92950</link>
    <description>&lt;pre&gt;The wxDemo works just fine on my machine. I can type in a multiline text
box, get word wrap, and press Enter to get a new line. It works.

I have attached a file that is not working, though. This is a simplified
case of what I deal with.

A Maker panel that can dynamically generate controls (in the full app this
also attaches validators)

The panel I use is a subclass of the Maker panel.

When I run this code, I can enter text into the multiline entry box, but
when I press enter all I get is a beep.

Windows 7 (64-bit)
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
wxPython 2.8.12.1

As I said, the wx Demo works fine.

Clearly, I'm missing something. Any help?
&lt;/pre&gt;</description>
    <dc:creator>Josh English</dc:creator>
    <dc:date>2012-05-20T02:10:01</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92947">
    <title>IsKeyInCategory</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92947</link>
    <description>&lt;pre&gt;Attached is a demo for testing IsKeyInCategory.  wx.WXK_END and 
wx.WXK_NUMPAD_END are not detected by 
event.IsKeyInCategory(wx.WXK_CATEGORY_JUMP) .  My testing was done on 
Win7(32bit) and 2.9.3.1

Thank You

&lt;/pre&gt;</description>
    <dc:creator>dk23</dc:creator>
    <dc:date>2012-05-18T22:32:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92938">
    <title>General wx code question (was HtmlWindow)</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92938</link>
    <description>&lt;pre&gt;


Which leads to a general question: Is it always preferable for Get___() and
Set___() methods to come in pairs? This may not strictly apply to wx.
&lt;/pre&gt;</description>
    <dc:creator>Josh English</dc:creator>
    <dc:date>2012-05-18T17:37:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92929">
    <title>wx.BitmapButton does not erase old image</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92929</link>
    <description>&lt;pre&gt;This also happens on wxPython Demo.

When defined a BitmapSelected, the "selected" image is still there after 
the mouse-up event.

Like this:
 . STEP 1 - BitmapButton main image - OK
 . STEP 2 - Click. BitmapSelected is shown, main image is not erased - NOK
 . STEP 3 - Unclick - main image is show, BitmapSelected is not erased - NOK
 . STEP 4 - ALT-TAB + ALT-TAB - BitmapSelected is erased - NOK

Like the images attached.

Configuration:
 . WinXP SP2 64 bits
 . Python 2.7 32 bits
 . wxPython 2.8

Is this a bug? Is this supposed to work like this? If so, what can I do to 
avoid this behaviour?

Thanks in advance.

Fabio


&lt;/pre&gt;</description>
    <dc:creator>Fabio Mazzarino</dc:creator>
    <dc:date>2012-05-18T16:16:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.wxpython/92928">
    <title>HtmlWindow</title>
    <link>http://comments.gmane.org/gmane.comp.python.wxpython/92928</link>
    <description>&lt;pre&gt;I have a wx.html.HtmlWindow object, using SetPage to set the content.

h = wx.html.HtmlWindow()
h.SetPage(someHTML)

weirdly there is no GetPage() to get back the html content, is there
some method to get the html content back?

&lt;/pre&gt;</description>
    <dc:creator>cefull</dc:creator>
    <dc:date>2012-05-18T14:56:42</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>

