Hi,
A new test build of wxPython has been uploaded.
Version: 2.8.8.0.pre20080608
URL: http://wxPython.wxcommunity.com/preview/20080608
Changes: http://wxPython.wxcommunity.com/preview/20080608/CHANGES.html
Have fun!
R'bot
Hi,
A new test build of wxPython has been uploaded.
Version: 2.8.8.0.pre20080608
URL: http://wxPython.wxcommunity.com/preview/20080608
Changes: http://wxPython.wxcommunity.com/preview/20080608/CHANGES.html
Have fun!
R'bot
Is it just me or ..
I can not enter a value in the spinCtrl, i.e. I can click on the up/down arrows and the value changes, no problem, but I can't enter e.g. a "5" without having to click 5 times.
I am pretty sure that was possible/working in the past but with this and the last preview it is not accepted - just a beep.
Werner
R'bot wrote:
Hi,
A new test build of wxPython has been uploaded.
Version: 2.8.8.0.pre20080608
URL: NameBright - Coming Soon
Changes: NameBright - Coming SoonHave fun!
R'bot_______________________________________________
wxpython-dev mailing list
wxpython-dev@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-dev
Looks like the installer on windows does not include
wx/lib/myole4ax.tlb and the brand new comtypes based ActiveX stuff
does not work.
After getting the missing stuff from SVN import errors go away.
Waldemar
On Mon, Jun 9, 2008 at 1:22 AM, R'bot <rbot@wxpython.org> wrote:
Hi,
A new test build of wxPython has been uploaded.
Version: 2.8.8.0.pre20080608
URL: NameBright - Coming Soon
Changes: NameBright - Coming Soon
Waldemar Osuch wrote:
On Mon, Jun 9, 2008 at 1:22 AM, R'bot <rbot@wxpython.org> wrote:
Hi,
A new test build of wxPython has been uploaded.
Version: 2.8.8.0.pre20080608
URL: NameBright - Coming Soon
Changes: NameBright - Coming SoonLooks like the installer on windows does not include
wx/lib/myole4ax.tlb and the brand new comtypes based ActiveX stuff
does not work.
After getting the missing stuff from SVN import errors go away.
Oops. Sorry about that. For the record here is the link to get the file.
http://trac.wxwidgets.org/browser/wxPython/branches/WX_2_8_BRANCH/wx/lib/myole4ax.tlb
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Werner F. Bruhin wrote:
Is it just me or ..
I can not enter a value in the spinCtrl, i.e. I can click on the up/down arrows and the value changes, no problem, but I can't enter e.g. a "5" without having to click 5 times.
I am pretty sure that was possible/working in the past but with this and the last preview it is not accepted - just a beep.
There were some changes to the spinctrl C++ code, but it doesn't look like restricting the typing of values was what was intended. Please enter a bug report about it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin Dunn wrote:
Werner F. Bruhin wrote:
Is it just me or ..
I can not enter a value in the spinCtrl, i.e. I can click on the up/down arrows and the value changes, no problem, but I can't enter e.g. a "5" without having to click 5 times.
I am pretty sure that was possible/working in the past but with this and the last preview it is not accepted - just a beep.
There were some changes to the spinctrl C++ code, but it doesn't look like restricting the typing of values was what was intended. Please enter a bug report about it.
done - Ticket #9558
Werner
R’bot wrote:
Hi, A new test build of wxPython has been uploaded. Version: 2.8.8.0.pre20080608 URL: Changes: Have fun! R'bot _______________________________________________ wxpython-dev mailing list
The new lean 'n mean wx.lib.pdfwin
works fine with both Adobe Reader version 7 and 8. But if versions 5 or
6 are installed - or if Adobe Reader is not installed at all, the
following error occurs:
File “e:\pydevsrc\dp6_V650\notebooks\reportview.py”, line 19, in
from wx.lib.pdfwin import PDFWindow
File “f:/Python25-sp.v650\wx\lib\pdfwin.py”, line 20, in
cc.GetModule( ('{05BFD3F1-6319-4F30-B752-C7A22889BCC4}', 1, 0) )
File “C:\Python25\lib\site-packages\comtypes\client_generate.py”,
line 93, in GetModule
tlib = comtypes.typeinfo.LoadRegTypeLib(comtypes.GUID(tlib[0]),
*tlib[1:])
File “C:\Python25\Lib\site-packages\comtypes\typeinfo.py”, line 472,
in LoadRegTypeLib
_oleaut32.LoadRegTypeLib(byref(GUID(guid)), wMajorVerNum,
wMinorVerNum, lcid, byref(tlib))
File “\loewis\25\python\Modules_ctypes\callproc.c”, line 754, in
GetResult
WindowsError: [Error 22] Library not registered
Also, as the call to cc.GetModule is conditional on the module not
being frozen, I’m not sure what’s intended to happen if running py2exe.
David Hughes wrote:
The new lean 'n mean wx.lib.pdfwin works fine with both Adobe Reader version 7 and 8. But if versions 5 or 6 are installed - or if Adobe Reader is not installed at all, the following error occurs:
File "e:\pydevsrc\dp6_V650\notebooks\reportview.py", line 19, in <module>
from wx.lib.pdfwin import PDFWindow
File "f:/Python25-sp.v650\wx\lib\pdfwin.py", line 20, in <module>
cc.GetModule( ('{05BFD3F1-6319-4F30-B752-C7A22889BCC4}', 1, 0) )
File "C:\Python25\lib\site-packages\comtypes\client\_generate.py", line 93, in GetModule
tlib = comtypes.typeinfo.LoadRegTypeLib(comtypes.GUID(tlib[0]), *tlib[1:])
File "C:\Python25\Lib\site-packages\comtypes\typeinfo.py", line 472, in LoadRegTypeLib
_oleaut32.LoadRegTypeLib(byref(GUID(guid)), wMajorVerNum, wMinorVerNum, lcid, byref(tlib))
File "\loewis\25\python\Modules\_ctypes\callproc.c", line 754, in GetResult
WindowsError: [Error 22] Library not registered
Can you find the typelib GUID for versions 5 or 6? We can probably try it if there is an exception and still be able to use the rest of the module as-is.
Also, as the call to cc.GetModule is conditional on the module not being frozen, I'm not sure what's intended to happen if running py2exe.
The GetModule function creates the module being imported on the next line (comtypes.gen.AcroPDFLib) so that should cause that module to be included when running py2exe, and when the frozen app is running it is not necessary to run GetModule again because you already have the generated module included in the bundle.
If you can think of a way to do that that makes more sense please do suggest it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
There is a typo in the sized_controls demo
import wx.lib**…**sized_controls as sc
roee shlomo wrote:
There is a typo in the sized_controls demo
import wx.lib*..*sized_controls as sc
Thanks.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin Dunn wrote:
David
Hughes wrote:The new lean 'n mean wx.lib.pdfwin works fine
with both Adobe Reader version 7 and 8. But if versions 5 or 6 are
installed - or if Adobe Reader is not installed at all, the following
error occurs:File “e:\pydevsrc\dp6_V650\notebooks\reportview.py”, line 19, in
from wx.lib.pdfwin import PDFWindow
File “f:/Python25-sp.v650\wx\lib\pdfwin.py”, line 20, in
cc.GetModule( ('{05BFD3F1-6319-4F30-B752-C7A22889BCC4}', 1, 0) )
File “C:\Python25\lib\site-packages\comtypes\client_generate.py”,
line 93, in GetModuletlib = comtypes.typeinfo.LoadRegTypeLib(comtypes.GUID(tlib[0]),
*tlib[1:])
File “C:\Python25\Lib\site-packages\comtypes\typeinfo.py”, line 472,
in LoadRegTypeLib_oleaut32.LoadRegTypeLib(byref(GUID(guid)), wMajorVerNum,
wMinorVerNum, lcid, byref(tlib))
File “\loewis\25\python\Modules_ctypes\callproc.c”, line 754, in
GetResultWindowsError: [Error 22] Library not registered
Can you find the typelib GUID for versions 5 or 6? We can probably try
it if there is an exception and still be able to use the rest of the
module as-is.
There doesn’t appear to be a typelib for
version 5 or 6. I have (re-)installed each of versions 5 to 8 in turn
and searched with a Typelib Browser but no module appears until version
7. The only thing there before that is called AcroIEHelper, which I
don’t think is relevant.
Also, as the call to cc.GetModule is
conditional on the module not being frozen, I’m not sure what’s
intended to happen if running py2exe.The GetModule function creates the module being imported on the next
line (comtypes.gen.AcroPDFLib) so that should cause that module to be
included when running py2exe, and when the frozen app is running it is
not necessary to run GetModule again because you already have the
generated module included in the bundle.
I see. But I think that assumes (the same
version of) Adobe Reader is installed on both the generating and the
target machine. If the new pdfwin.py is only going to support version 7
or later, it will at least make things a bit simpler - I haven’t tested
it yet but it may only be necessary to ensure that
comtypes.gen.AcroPDFLib is loaded into the bundle and then to perform a
check like the old get_acroversion() on the target machine before using
it.
–
Regards,
David Hughes
David Hughes wrote:
Robin Dunn wrote:
David
Hughes wrote:The new lean 'n mean wx.lib.pdfwin works
fine
with both Adobe Reader version 7 and 8. But if versions 5 or 6 are
installed - or if Adobe Reader is not installed at all, the following
error occurs:WindowsError: [Error 22] Library not registered
Can you find the typelib GUID for versions 5 or 6? We can probably try
it if there is an exception and still be able to use the rest of the
module as-is.
There doesn’t appear to be a typelib for
version 5 or 6. I have (re-)installed each of versions 5 to 8 in turn
and searched with a Typelib Browser but no module appears until version
- The only thing there before that is called AcroIEHelper, which I
don’t think is relevant.Also, as the call to cc.GetModule is
conditional on the module not being frozen, I’m not sure what’s
intended to happen if running py2exe.
The GetModule function creates the module being imported on the next
line (comtypes.gen.AcroPDFLib) so that should cause that module to be
included when running py2exe, and when the frozen app is running it is
not necessary to run GetModule again because you already have the
generated module included in the bundle.
I see. But I think that assumes (the same
version of) Adobe Reader is installed on both the generating and the
target machine. If the new pdfwin.py is only going to support version 7
or later, it will at least make things a bit simpler - I haven’t tested
it yet but it may only be necessary to ensure that
comtypes.gen.AcroPDFLib is loaded into the bundle and then to perform a
check like the old get_acroversion() on the target machine before using
it.
The attached version of wx.lib.pdfwin.py will use either Adobe Reader
versions 5&6 or 7+ depending on what it finds installed. It works
for both a normal Python installation and a frozen py2exe - and it
doesn’t appear to be necessary to differentiate which type is running.
By some masterpiece of levitation, any missing comtypes modules are
automatically generated when required (in memory in the case of py2exe)
Sorry this has just missed the 2.8.8.0 release.
pdfwin.py (10.6 KB)
–
Regards
David Hughes
Forestfield Software
David Hughes wrote:
The attached version of wx.lib.pdfwin.py will use either Adobe Reader versions 5&6 or 7+ depending on what it finds installed. It works for both a normal Python installation and a frozen py2exe - and it doesn't appear to be necessary to differentiate which type is running. By some masterpiece of levitation, any missing comtypes modules are automatically generated when required (in memory in the case of py2exe) - so it isn't even necessary to ensure that any of the Adobe modules are included in the bundle. It also means that the old get_acroversion() function, suggested new name get_min_adobe_version(), can be implemented virtually for nothing - because it is useful for cross-platform applications when non-Windows or if Adobe Reader is not installed at all.
Sorry this has just missed the 2.8.8.0 release.
Thanks David. There will be a 2.8.8.1 soon, and I was planning on checking back with you to see if you had made any progress on this. Thanks for beating me to it!
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!