wxPython 2.5 - bug in wx.Execute

wxWindows

    Next

  • 1. does wxwidgets have function like IntToStr, LongToStr, ULongToStr etc?
    i would port my code into wxwindows if possible. thank you.
  • 2. Tiff file resolution bug.
    Hi All, Found a bug with the way that imagtif.cpp tries to set up the resolution for a TIFF file, imagtif.cpp -> Line 341 if ( image->HasOption(wxIMAGE_OPTION_RESOLUTIONX) && image->HasOption(wxIMAGE_OPTION_RESOLUTIONY) ) { TIFFSetField(tif, TIFFTAG_XRESOLUTION, image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONX)); TIFFSetField(tif, TIFFTAG_YRESOLUTION, image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONY)); } Should be <- if ( image->HasOption(wxIMAGE_OPTION_RESOLUTIONX) && image->HasOption(wxIMAGE_OPTION_RESOLUTIONY) ) { TIFFSetField(tif, TIFFTAG_XRESOLUTION, (float) image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONX)); TIFFSetField(tif, TIFFTAG_YRESOLUTION, (float) image->GetOptionInt(wxIMAGE_OPTION_RESOLUTIONY)); } Otherwise when the argument gets passed to the TIFFSetField function as a variable parameter, it mis-casts it from a integer pointer to a float pointer - which in the cases I tested came through as a resolution of zero. Cheers, Phil

wxPython 2.5 - bug in wx.Execute

Postby leszczynscy » Tue, 22 Feb 2005 05:06:45 GMT

Hi,

I need a help with following problem which is blocking me quite seriously.

I noted some weird behavior on Windows (Python 2.3, wxPython 2.5). The 
same code works fine under Linux.

When using id = wx.Execute(cmd, wx.EXEC_ASYNC, self.process)to spawn 
new wxPython based GUI program, the GUI does not pop up. I checked that 
the process itself is running/alive, the print over the streams get 
propagated to the parent process, but no GUI. It only happnes for 
wxPython based programs - for e.g. regural python command line programs 
it works fine.

It is easy to be replicated using wx Demo by opening Process and 
Events/Process.  Then after typing in "python -u demo.py"  nothing happens.


Please help, it really blocks me.  The temporary work around is to use 
"cmd /e python -u demo.py", but I lose the unbuffered -u effect.

Thanks,
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 


Re: wxPython 2.5 - bug in wx.Execute

Postby robin » Tue, 22 Feb 2005 11:56:13 GMT



When the I/O is redirected wxExecute uses some flags to supress the 
showing of the console window.  This also affects GUI apps and so their 
first Show() of a top level window is ignored.  You can use the 
wx.EXEC_NOHIDE flag to prevent that behaviour.

-- 
Robin Dunn
Software Craftsman
 http://www.**--****.com/   Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 


Re: wxPython 2.5 - bug in wx.Execute

Postby Andy Leszczynski » Wed, 23 Feb 2005 03:35:18 GMT






Thx for the help. Works the way it should :-).

A.

Similar Threads:

1.wxPython 2.5 - bug in wx.Execute

Hi,

I need a help with following problem which is blocking me quite seriously.

I noted some weird behavior on Windows (Python 2.3, wxPython 2.5). The 
same code works fine under Linux.

When using id = wx.Execute(cmd, wx.EXEC_ASYNC, self.process)to spawn 
new wxPython based GUI program, the GUI does not pop up. I checked that 
the process itself is running/alive, the print over the streams get 
propagated to the parent process, but no GUI. It only happnes for 
wxPython based programs - for e.g. regural python command line programs 
it works fine.

It is easy to be replicated using wx Demo by opening Process and 
Events/Process.  Then after typing in "python -u demo.py"  nothing happens.


Please help, it really blocks me.  The temporary work around is to use 
"cmd /e python -u demo.py", but I lose the unbuffered -u effect.

Thanks,
Andy

2.chaco and wx 2.5....

anyone know if it's possibile to run chaco with wx 2.5.3 or grater?


3.wx 2.5(ish) CVS HEAD problems/questions

4.wx 2.5 CVS HEAD samples segfault

5.wxPython - wx package (new style wxPython?)

Would you recommend to use the wx package of wxPython?

From the documentation:

  Provides a way to drop the wx prefix from wxPython objects by
  dynamically loading and renaming objects from the real wxPython
  package.  This is the first phase of a transition to a new style
  of using wxPython.  For example:
                                                                                
      import wx
      class MyFrame(wx.Frame):
      ...
                                                                                
  instead of:
                                                                                
      from wxPython.wx import *
      class MyFrame(wxFrame):
      ...

What does 'this is the first phase of a transition to a new style
using wxPython' in the above mean? Will this new style become the
only way to use wxPython in future releases?

Thanks in advance for any answers.

-- 
mailto: logan@phreaker(NoSpam).net

6. wxPython looses function "wxPython.wx.miscc"

7. Bug in wxHTTP wxcvs 2.5

8. Re[2]: Bug in wxHTTP wxcvs 2.5



Return to wxWindows

 

Who is online

Users browsing this forum: No registered users and 85 guest