i'm just getting started with wxPython, and was hoping to get some
pointers for a project i'm working on.
I'm working with Self-Organizing Maps, and would like to build a
simple GUI that will allow me to visualize the map and dynamically
change its properties.
Basically, where i'd like to begin is with a 2D grid of colored
squares that i can assign random RGB values to. When I run my SOM
algorithm, the squares reorganize themselves so as to group like
colors together. I have the SOM stuff done, but what would be the best
way to construct such a grid in wxPython?
i'm just getting started with wxPython, and was hoping to get some
pointers for a project i'm working on.
I'm working with Self-Organizing Maps, and would like to build a
simple GUI that will allow me to visualize the map and dynamically
change its properties.
Basically, where i'd like to begin is with a 2D grid of colored
squares that i can assign random RGB values to. When I run my SOM
algorithm, the squares reorganize themselves so as to group like
colors together. I have the SOM stuff done, but what would be the best
way to construct such a grid in wxPython?
Sounds like a good job for FloatCanvas or OGL.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Basically, where i'd like to begin is with a 2D grid of colored
squares that i can assign random RGB values to. When I run my SOM
algorithm, the squares reorganize themselves so as to group like
colors together. I have the SOM stuff done, but what would be the best
way to construct such a grid in wxPython?
Sounds like a good job for FloatCanvas or OGL.
This is exactly the kind of thing I wrote FloatCanvas for -- this should be very easy, and you'll get full zooming and panning to boot.
Check out the demo in the wxPython demo. If you have any questions, or want the latest version, send me note, or join our new mailing list:
dximac05:~/python_soms/demo ladmin$ pythonw FloatCanvas.py
Traceback (most recent call last):
File "FloatCanvas.py", line 1885, in ?
app = DemoApp(False)# put in True if you want output to go to it's
own window.
File "FloatCanvas.py", line 1836, in __init__
wx.App.__init__(self, *args, **kwargs)
File "/BinaryCache/wxWidgets/wxWidgets-2.root~684/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python/wx-2.5.3-mac-unicode/wx/_core.py",
line 5301, in __init__
File "/BinaryCache/wxWidgets/wxWidgets-2.root~684/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python/wx-2.5.3-mac-unicode/wx/_core.py",
line 4980, in _BootstrapApp
File "FloatCanvas.py", line 1856, in OnInit
frame.DrawTest()
File "FloatCanvas.py", line 326, in DrawTest
Canvas.AddRectangle(xy, wh, LineWidth = lw, FillColor = colors[cf])
File "/Users/ladmin/python_soms/demo/FloatCanvas.py", line 2139, in addshape
TypeError: __init__() takes at least 5 non-keyword arguments (3 given)
any idea what's going on there? I'm on OS X if that is making a difference.
···
On 6/29/06, Christopher Barker <Chris.Barker@noaa.gov> wrote:
>> Basically, where i'd like to begin is with a 2D grid of colored
>> squares that i can assign random RGB values to. When I run my SOM
>> algorithm, the squares reorganize themselves so as to group like
>> colors together. I have the SOM stuff done, but what would be the best
>> way to construct such a grid in wxPython?
>
> Sounds like a good job for FloatCanvas or OGL.
This is exactly the kind of thing I wrote FloatCanvas for -- this should
be very easy, and you'll get full zooming and panning to boot.
Check out the demo in the wxPython demo. If you have any questions, or
want the latest version, send me note, or join our new mailing list:
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
dximac05:~/python_soms/demo ladmin$ pythonw FloatCanvas.py
Traceback (most recent call last):
File "FloatCanvas.py", line 1885, in ?
app = DemoApp(False)# put in True if you want output to go to it's
own window.
File "FloatCanvas.py", line 1836, in __init__
wx.App.__init__(self, *args, **kwargs)
File "/BinaryCache/wxWidgets/wxWidgets-2.root~684/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python/wx-2.5.3-mac-unicode/wx/_core.py",
line 5301, in __init__
File "/BinaryCache/wxWidgets/wxWidgets-2.root~684/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/python/wx-2.5.3-mac-unicode/wx/_core.py",
line 4980, in _BootstrapApp
File "FloatCanvas.py", line 1856, in OnInit
frame.DrawTest()
File "FloatCanvas.py", line 326, in DrawTest
Canvas.AddRectangle(xy, wh, LineWidth = lw, FillColor = colors[cf])
File "/Users/ladmin/python_soms/demo/FloatCanvas.py", line 2139, in addshape
TypeError: __init__() takes at least 5 non-keyword arguments (3 given)
any idea what's going on there? I'm on OS X if that is making a difference.
On 6/29/06, Christopher Barker <Chris.Barker@noaa.gov> wrote:
> >> Basically, where i'd like to begin is with a 2D grid of colored
> >> squares that i can assign random RGB values to. When I run my SOM
> >> algorithm, the squares reorganize themselves so as to group like
> >> colors together. I have the SOM stuff done, but what would be the best
> >> way to construct such a grid in wxPython?
> >
> > Sounds like a good job for FloatCanvas or OGL.
>
> This is exactly the kind of thing I wrote FloatCanvas for -- this should
> be very easy, and you'll get full zooming and panning to boot.
>
> Check out the demo in the wxPython demo. If you have any questions, or
> want the latest version, send me note, or join our new mailing list:
>
> http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
>
> -Chris
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chris.Barker@noaa.gov
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
>