List Info

Thread: 20060712 test build uploaded




20060712 test build uploaded
user name
2006-07-13 06:12:46
Hi,

A new test build of wxPython has been uploaded to starship. 


   Version: 2.7.0.0pre.20060712
   URL:     http://starship.python.net/crew/robind/wxPython/da
ily/20060712
   Changes: http://starship.python.net/crew/robin
d/wxPython/daily/20060712/CHANGES.html

Have fun!
R'bot


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-13 16:08:55
Hi Robin,

R'bot wrote:

>Hi,
>
>A new test build of wxPython has been uploaded to
starship.  
>
>   Version: 2.7.0.0pre.20060712
>   URL:     http://starship.python.net/crew/robind/wxPython/da
ily/20060712
>   Changes: http://starship.python.net/crew/robin
d/wxPython/daily/20060712/CHANGES.html
>
>Have fun!
>R'bot
>  
>
I am having a little bit of fun!

Installed it on Python 2.5b2 and Windows XP pro.

In the demo I found some little issues.

*Picker controls*
If I click on the wx.ColorPickerCtrl and change the color by
clicking on 
a shade on the right side, the RGB values change but not the
selected 
color.  I have to select first a color on the left and then
within the 
"shades area" to make it work.

*RichText control*
I can't change the font color, all the other things like
bold, italic, 
font style work, but selecting a text, clicking on the font
button (on 
the toolbar) and selecting any color and pressing o.k. does
NOT change 
the color, however if I change at the same time e.g. font
size the size 
changes but not the color.

*ActiveXPdfWindow*
Crashes when opening a PDF file (Adobe 7.0.5)

*Visual things in the demo*
- with the ScrolledPanel demo a black squart shows for a
moment
- with the SplitTree a large black rectangle shows for some
time - very 
very very slow in loading

*Exception when I tried to run Boa 0.4.4*
Traceback (most recent call last):
  File "boa.py", line 256, in <module>
    import Preferences, Utils
  File
"C:\Python25\Lib\site-packages\boa\Preferences.py
", line 137, in 
<module>

    execfile(file)
  File "C:\Documents and 
Settings\wbruhin\.boa-constructor\prefs.plug-ins.rc.py&q
uot;
, line 11, in <module>
    from wxPython.wx import *
  File 
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\__init__.py"
, line 15, in <module>
    import _wx
  File 
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\_wx.py", lin
e 3, in <module>
    from _core import *
  File 
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\_core.py", l
ine 877, in <module>
    wxEVT_POWER = wx._core.wxEVT_POWER
AttributeError: 'module' object has no attribute
'wxEVT_POWER'*
*

Enough fun for today!

Hope this is useful.
Werner

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-13 18:02:38
Werner F. Bruhin wrote:
> Hi Robin,
> 
> R'bot wrote:
> 
>> Hi,
>>
>> A new test build of wxPython has been uploaded to
starship. 
>>   Version: 2.7.0.0pre.20060712
>>   URL:     http://starship.python.net/crew/robind/wxPython/da
ily/20060712
>>   Changes: 
>> http://starship.python.net/crew/robin
d/wxPython/daily/20060712/CHANGES.html 
>>
>>
>> Have fun!
>> R'bot
>>  
>>
> I am having a little bit of fun!
> 
> Installed it on Python 2.5b2 and Windows XP pro.
> 
> In the demo I found some little issues.
> 
> *Picker controls*
> If I click on the wx.ColorPickerCtrl and change the
color by clicking on 
> a shade on the right side, the RGB values change but
not the selected 
> color.  I have to select first a color on the left and
then within the 
> "shades area" to make it work.

Hmm...  I can't duplicate this.  It works for me to just
pick pick a 
color in the gradient area on the right, adjust the
intensity slider on 
the far right, and then click Ok

> 
> *RichText control*
> I can't change the font color, all the other things
like bold, italic, 
> font style work, but selecting a text, clicking on the
font button (on 
> the toolbar) and selecting any color and pressing o.k.
does NOT change 
> the color, however if I change at the same time e.g.
font size the size 
> changes but not the color.

I'll check into this.  It may be something that I missed
when porting 
the sample from C++.


> 
> *ActiveXPdfWindow*
> Crashes when opening a PDF file (Adobe 7.0.5)

Yes, this is the same old problem with Adobe's new ActiveX
control that 
nobody has been able to solve yet.  I suppose I should just
take this 
module out of the demo, or else show it by embedding in an
IE window 
instead, which does work.  If somebody has time to whip up a
patch for 
this I would appreciate it.


> 
> *Visual things in the demo*
> - with the ScrolledPanel demo a black squart shows for
a moment

This was present in 2.6 as well, just not as noticeably
visible.  It 
comes from creating the panel for the newly selected demo,
which shows 
up at its default size and position, and then adding it to
the notebook 
where it gets sized, positioned, and painted appropriately. 
It is black 
initially now because of some low level changes done a while
back for 
how themed windows are created (or something like that.)  We
could work 
around that by creating the panels hidden to begin with and
then showing 
them after they've been added to the notebook, but I
haven't had the 
gumption needed to make the change to all of the demo
modules.

> - with the SplitTree a large black rectangle shows for
some time - very 
> very very slow in loading

Hmm, something is blocking some event handler from returning
to the main 
loop...  Very weird.  I'll take a look at it.

> 
> *Exception when I tried to run Boa 0.4.4*
> Traceback (most recent call last):
>  File "boa.py", line 256, in <module>
>    import Preferences, Utils
>  File
"C:\Python25\Lib\site-packages\boa\Preferences.py
", line 137, in 
> <module>
> 
>    execfile(file)
>  File "C:\Documents and 
>
Settings\wbruhin\.boa-constructor\prefs.plug-ins.rc.py&q
uot;
> , line 11, in <module>
>    from wxPython.wx import *
>  File 
>
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\__init__.py"
> , line 15, in <module>
>    import _wx
>  File 
>
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\_wx.py", lin
> e 3, in <module>
>    from _core import *
>  File 
>
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\_core.py", l
> ine 877, in <module>
>    wxEVT_POWER = wx._core.wxEVT_POWER
> AttributeError: 'module' object has no attribute
'wxEVT_POWER'*
> *

Did you also see a DeprecationWarning about the wxPython.wx
namespace 
not being automatically generated or maintained any longer? 
I can fix 
this particular bug, but the old wxPython package really
needs to die.


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


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-14 08:40:16
Hi Robin,

Robin Dunn wrote:

> Werner F. Bruhin wrote:
>
>> ...
>

>> *Picker controls*
>> If I click on the wx.ColorPickerCtrl and change the
color by clicking 
>> on a shade on the right side, the RGB values change
but not the 
>> selected color.  I have to select first a color on
the left and then 
>> within the "shades area" to make it
work.
>
>
> Hmm...  I can't duplicate this.  It works for me to
just pick pick a 
> color in the gradient area on the right, adjust the
intensity slider 
> on the far right, and then click Ok

For me the problem only happens if I ONLY click in the
gradient area and 
then click OK.  If I adjust it with the slider then it works
fine.

>>
>> *Exception when I tried to run Boa 0.4.4*
>> Traceback (most recent call last):
>>  File "boa.py", line 256, in
<module>
>>    import Preferences, Utils
>>  File
"C:\Python25\Lib\site-packages\boa\Preferences.py
", line 137, 
>> in <module>
>>
>>    execfile(file)
>>  File "C:\Documents and 
>>
Settings\wbruhin\.boa-constructor\prefs.plug-ins.rc.py&q
uot;
>> , line 11, in <module>
>>    from wxPython.wx import *
>>  File 
>>
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\__init__.py" 
>>
>> , line 15, in <module>
>>    import _wx
>>  File 
>>
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\_wx.py", 
>> lin
>> e 3, in <module>
>>    from _core import *
>>  File 
>>
"C:\Python25\Lib\site-packages\wx-2.7.0-msw-unicod
e\wxPython\_core.py", 
>> l
>> ine 877, in <module>
>>    wxEVT_POWER = wx._core.wxEVT_POWER
>> AttributeError: 'module' object has no attribute
'wxEVT_POWER'*
>> *
>
>
> Did you also see a DeprecationWarning about the
wxPython.wx namespace 
> not being automatically generated or maintained any
longer?  I can fix 
> this particular bug, but the old wxPython package
really needs to die.

O.k., changed my test copy of Boa and got it to work.  Will
be in touch 
with Riaan on this.

Werner


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-14 12:07:59
Robin Dunn wrote:

> Werner F. Bruhin wrote:
>
>>
>> *ActiveXPdfWindow*
>> Crashes when opening a PDF file (Adobe 7.0.5)
>
>
> Yes, this is the same old problem with Adobe's new
ActiveX control 
> that nobody has been able to solve yet.  I suppose I
should just take 
> this module out of the demo, or else show it by
embedding in an IE 
> window instead, which does work.  If somebody has time
to whip up a 
> patch for this I would appreciate it.

See attached file ActiveX_PDFWindow.py.

Regards,
David Hughes
import  sys
import  wx

# Use PDFWindow if Acrobat reader version < 7
# otherwise use IEHtmlWindow - see overview.

#-----------------------------------------------------------
-----------

class TestPanel(wx.Panel):
    def __init__(self, parent, log, acrobat_version):
        wx.Panel.__init__(self, parent, -1)
        self.acrobat_version = acrobat_version
        self.pdf = None

        sizer = wx.BoxSizer(wx.VERTICAL)
        btnSizer = wx.BoxSizer(wx.HORIZONTAL)

        if acrobat_version < '7.0':
            from wx.lib.pdfwin import PDFWindow
            self.pdf = PDFWindow(self,
style=wx.SUNKEN_BORDER)
        else:
            from wx.lib.iewin import IEHtmlWindow
            self.pdf = IEHtmlWindow(self,
style=wx.SUNKEN_BORDER)

        sizer.Add(self.pdf, proportion=1, flag=wx.EXPAND)

        btn = wx.Button(self, wx.NewId(), "Open PDF
File")
        self.Bind(wx.EVT_BUTTON, self.OnOpenButton, btn)
        btnSizer.Add(btn, proportion=1,
flag=wx.EXPAND|wx.ALL, border=5)

        if acrobat_version < '7.0':
            """ These methods are not
available when reader is opened via
                IE window - but the reader itself contains
page navigation
                buttons anyway.
            """
            btn = wx.Button(self, wx.NewId(), "<--
Previous Page")
            self.Bind(wx.EVT_BUTTON, self.OnPrevPageButton,
btn)
            btnSizer.Add(btn, proportion=1,
flag=wx.EXPAND|wx.ALL, border=5)

            btn = wx.Button(self, wx.NewId(), "Next
Page -->")
            self.Bind(wx.EVT_BUTTON, self.OnNextPageButton,
btn)
            btnSizer.Add(btn, proportion=1,
flag=wx.EXPAND|wx.ALL, border=5)


        btnSizer.Add((50,-1), proportion=2, flag=wx.EXPAND)
        sizer.Add(btnSizer, proportion=0, flag=wx.EXPAND)

        self.SetSizer(sizer)
        self.SetAutoLayout(True)


    def OnOpenButton(self, event):
        dlg = wx.FileDialog(self,
wildcard="*.pdf")

        if dlg.ShowModal() == wx.ID_OK:
            wx.BeginBusyCursor()
            if self.acrobat_version < '7.0':    
                self.pdf.LoadFile(dlg.GetPath())
            else:
                self.pdf.Navigate(dlg.GetPath())
            wx.EndBusyCursor()

        dlg.Destroy()


    def OnPrevPageButton(self, event):
        self.pdf.gotoPreviousPage()


    def OnNextPageButton(self, event):
        self.pdf.gotoNextPage()

#-----------------------------------------------------------
-----------------

def get_acroversion():
    " Return version of Adobe Acrobat executable or
None"
    import _winreg
    acrosoft = [r'SOFTWARE\Adobe\Acrobat
Reader\%version%\InstallPath',
                r'SOFTWARE\Adobe\Adobe
Acrobat\%version%\InstallPath',]
            
    for regkey in acrosoft:
        for version in ('7.0', '6.0', '5.0', '4.0'):
            try:
                path =
_winreg.QueryValue(_winreg.HKEY_LOCAL_MACHINE,
regkey.replace('%version%', version))
                return version
            except:
                continue
    return None

#-----------------------------------------------------------
-----------------

def runTest(frame, nb, log):
    if wx.Platform <> '__WXMSW__':
        from Main import MessagePanel
        win = MessagePanel(nb, 'This demo only works on
Microsoft Windows.',
                           'Sorry', wx.ICON_WARNING)
    else:
        version = get_acroversion()
        if not version:
            from Main import MessagePanel
            win = MessagePanel(nb, 'Adobe Acrobat reader
not found.',
                               'Sorry', wx.ICON_WARNING)
        else:
            win = TestPanel(nb, log, version)
    return win


overview = """\
<html><body>
<h2>wx.lib.pdfwin.PDFWindow</h2>

The wx.lib.pdfwin.PDFWindow class is another example of
using ActiveX
controls from wxPython using the new wx.activex module. 
This allows
you to use an ActiveX control as if it is a wx.Window, you
can call
its methods, set/get properties, and receive events from the
ActiveX
control in a very intuitive way.

<p> Using this class is simpler than ActiveXWrapper,
doesn't rely on
the win32all extensions, and is more
"wx\'ish", meaning that it uses
events and etc. as would be expected from any other wx
window.

<p> This demo embeds the Adobe Acrobat Reader, and
gives you some
buttons for opening a PDF file, changing pages, etc. that
show how to
call methods on the COM object.  If you don't have Acrobat
Reader 4.0
(or greater) installed it won't work.

<p> For some reason, Version 7 of the reader causes
Python itself to 
crash when it is called directly, but fortunately it can be
accessed 
via the Internet Explorer ActiveX control - although with a
more 
restricted range of methods. (They also have different
names).

</body></html>
"""

#-----------------------------------------------------------
-----------



if __name__ == '__main__':
    import sys,os
    import run
    run.main(['', os.path.basename(sys.argv[0])] +
sys.argv[1:])



------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org
20060712 test build uploaded
user name
2006-07-14 18:08:27
TreeBook demo is not terribly useful because I can't see
and  
manipulate the tree.  It seems like there should be a sizer
between  
the tree and book page, but I can't seem to find it.

  Mac OSX 10.4
wxPython 2.7.0.0pre.20060712
Python 2.5b2

On Jul 13, 2006, at 00:12, R'bot wrote:

> Hi,
>
> A new test build of wxPython has been uploaded to
starship.
>
>    Version: 2.7.0.0pre.20060712
>    URL:     http://starship.python.net/crew/robind/wxPython/daily/

> 20060712
>    Changes: http://starship.python.net/crew/robind/wxPython/daily/

> 20060712/CHANGES.html
>
> Have fun!
> R'bot
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
> For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org
>


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-14 18:08:27
TreeBook demo is not terribly useful because I can't see
and  
manipulate the tree.  It seems like there should be a sizer
between  
the tree and book page, but I can't seem to find it.

  Mac OSX 10.4
wxPython 2.7.0.0pre.20060712
Python 2.5b2

On Jul 13, 2006, at 00:12, R'bot wrote:

> Hi,
>
> A new test build of wxPython has been uploaded to
starship.
>
>    Version: 2.7.0.0pre.20060712
>    URL:     http://starship.python.net/crew/robind/wxPython/daily/

> 20060712
>    Changes: http://starship.python.net/crew/robind/wxPython/daily/

> 20060712/CHANGES.html
>
> Have fun!
> R'bot
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
> For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org
>


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-17 21:02:23
Shane Holloway (IEEE) wrote:
> TreeBook demo is not terribly useful because I can't
see and manipulate 
> the tree.  It seems like there should be a sizer
between the tree and 
> book page, but I can't seem to find it.

I've got a workaround for this, but I'm still looking for
a better fix. 
  The trouble is that the division between the tree and the
panels is 
supposed to be automatically calculated by the Treebook, but
it calls 
the tree's GetBestSize method too soon, before it has
items...

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


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-17 21:02:18
David Hughes wrote:
> Robin Dunn wrote:
> 
>> Werner F. Bruhin wrote:
>>
>>>
>>> *ActiveXPdfWindow*
>>> Crashes when opening a PDF file (Adobe 7.0.5)
>>
>>
>> Yes, this is the same old problem with Adobe's new
ActiveX control 
>> that nobody has been able to solve yet.  I suppose
I should just take 
>> this module out of the demo, or else show it by
embedding in an IE 
>> window instead, which does work.  If somebody has
time to whip up a 
>> patch for this I would appreciate it.
> 
> See attached file ActiveX_PDFWindow.py.
> 

I decided to take a different route with this.  Instead of
just 
modifiying the demo I modified the wx.lib.pdfwin module to
automatically 
use the IE window.  This way it is still able to expose the
Acrobat COM 
methods because they are available via the Document
property.  However 
this required using win32com instead of wx.activex.

Please give it a try by getting the CVS version:


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


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-17 21:39:32
Robin Dunn wrote:
> David Hughes wrote:

> I decided to take a different route with this.  Instead
of just 
> modifiying the demo I modified the wx.lib.pdfwin module
to automatically 
> use the IE window.  This way it is still able to expose
the Acrobat COM 
> methods because they are available via the Document
property.  However 
> this required using win32com instead of wx.activex.
> 
> Please give it a try by getting the CVS version:

Oops, I forgot to paste in the link:

http://cvs.wxwidgets.org/viewcvs.cgi/wxW
idgets/wxPython/wx/lib/pdfwin.py

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


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

20060712 test build uploaded
user name
2006-07-18 09:22:10
Robin Dunn wrote:

> I decided to take a different route with this.  Instead
of just 
> modifiying the demo I modified the wx.lib.pdfwin module
to 
> automatically use the IE window.  This way it is still
able to expose 
> the Acrobat COM methods because they are available via
the Document 
> property.  However this required using win32com instead
of wx.activex.
>
>> Please give it a try by getting the CVS version:
>
>   
> http://cvs.wxwidgets.org/viewcvs.cgi/wxW
idgets/wxPython/wx/lib/pdfwin.py

That's really great! It means I can take out all the hacks
in my 
application to print PDFs when using the IE Window  

I've grabbed the CVS version and will test it on a range of
Win32 
versions that I've been setting up using  VirtualPC.

--
Regards,
David Hughes

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

[1-11]

about | contact  Other archives ( Real Estate discussion Medical topics )