0x163mL / pygraphics

Automatically exported from code.google.com/p/pygraphics
0 stars 0 forks source link

Threading Issues with WingIDE #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We wanted to try to include a threaded show() window, such that it could be
updated via the Wing console (i.e. to show new pictures, changes to
pictures, etc...). However due to the nature of Wing and its GUI, simply
put it doesn't like to work well with threads. Any threads I tried to
create would at least activate but not run any code. As such, we need to
come up with either an alternative IDE (because the code works fine from
the command prompt and Eclipse) or come up with another solution.

One thing I was thinking of doing was provide a separate interactive
console for use with specifically the show() window. I've got a
pseudo-working example (in the repository under Hardeep Sandbox) that I
hacked together quickly. The problem is creating a console/shell that works
similar to the one Wing provides in its IDE.

Either way, we need to discuss the options.

Original issue reported on code.google.com by ootz...@gmail.com on 23 May 2008 at 6:13

GoogleCodeExporter commented 8 years ago
Update: threading now works with the new version of WingIDE 101 Stable as of the
version 3.1.1 (stable release) which was released on May 20, 2008. 

The show() window now has an initial mostly working commit as of [r156]. The
ShowOMatic (we can change the name if you like :P Just keeping myself 
entertained) is
fully threaded and can display a picture while it is simultaneously modified in 
the
shell or whatever. Calling picture.show() will create and display the window. 
If the
window is already open, as of [r157] it will simply update the displayed 
picture.
Also, the user may also specify an optional int poll when calling 
Picture.show(),
which will cause the ShowOMatic window to automatically update every poll 
seconds.
The enforced minimum interval is 1. Finally, the show window has fully working
scrollbars, and the user may pan the image using any of the mouse buttons 1, 2 
or 3.

Original comment by ootz...@gmail.com on 12 Jun 2008 at 4:16