wxGrid
I have a grid. I want to sort it when a column label is clicked. I know about the EVT_GRID_LABEL_LEFT_DCLICK event, but that is not enough. I do not merely need to know that a label was clicked. I need to know which label was clicked. I do not know how to do that. I suspect you might know. I request that you tell me. I also wish to know some other things: how to find out the location of a mouse pointer in a wxWindow (or at least the frame), and how to change the color of a single specified pixel in a bitmap. I use Python 2.3, wxPython 2.4.2. -- http://mail.python.org/mailman/listinfo/python-list
Grid not getting updated
I'm using wxPython. My program has a loop where it puts data in a grid cell, and then goes for some more processing. Well, some of the cells are used to indicate progress, but their usefulness is hindered by the fact that the grid refuses to change until the loop finishes, when it shows the final result. What can I do about this? -- http://mail.python.org/mailman/listinfo/python-list
Grid not getting updated
I have a wxPython program, and it has a loop. I want to be able to break the loop by pushing a button. But it doesn't react to events until the loop finishes, which is sort of pointless. What's the best way to get it to work? Do I need threads? Or is there a more convenient way? -- http://mail.python.org/mailman/listinfo/python-list
Re: Grid not getting updated
Thanks. It seems to be working. -- http://mail.python.org/mailman/listinfo/python-list
Why does this not work?
(I don't know how to make the title more specific in a useful way, sorry.) http://www.geocities.com/fusionary_2000/PingGUI.zip Requires wxPython. The part that fails is the function OnGridLabelLeftClick in PingGUI.py. It just doesn't do anything. It's supposed to sort the grid by values in the column that was clicked. Why? -- http://mail.python.org/mailman/listinfo/python-list
Re: Why does this not work?
PingGUI is a program that nobody but me knows anything about. If I wanted help from people who are experts on it, I'd get nothing at all. -- http://mail.python.org/mailman/listinfo/python-list
Re: Why does this not work?
Thanks, guys, it works now. I couldn't have done it without your generous help. -- http://mail.python.org/mailman/listinfo/python-list
Re: Why does this not work?
I fixed it already, as I said. The problem had nothing to do with wxPython. I just used my own functions in the wrong way. -- http://mail.python.org/mailman/listinfo/python-list
Mod_python
I want to use mod_python, but I'm having trouble. Here's what I have in
my config:
LoadModule python_module /usr/local/apache2/modules/mod_python.so
AddHandler mod_python .py
PythonHandler mptest
PythonDebug On
/usr/local/apache2/htdocs/python/mptest.py:
from mod_python import *
def handler(req):
req.write("Hello")
return apache.OK
http://localhost/python/mptest.py:
Mod_python error: "PythonHandler mptest"
Traceback (most recent call last):
File
"/AcivePython-2.4/lib/python2.4/site-packages/mod_python/apache.py",
line 287, in HandlerDispatch
log=debug)
File
"/AcivePython-2.4/lib/python2.4/site-packages/mod_python/apache.py",
line 454, in import_module
f, p, d = imp.find_module(parts[i], path)
ImportError: No module named mptest
Python is obviously binary, but I compiled Apache and modpython. I
restarted apache before using the config. I'm inclined to believe that
I'm doing everything right, but the computer isn't.
Is there any worthwhile alternative to modpython? I find it rather
troublesome.
--
http://mail.python.org/mailman/listinfo/python-list
