EPD64, MacOSX and wxPython

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

EPD64, MacOSX and wxPython

Damien Drix-2
Hello all,

Has anyone managed to get a 64-bits wxPython/cocoa build working with the
MacOSX EPD64 distribution?

I've compiled both wx and wxPython from source and although the wx demos
work fine, wxPython fails with the message:

"This program needs access to the screen.
Please run with a Framework build of python, and only when you are
logged in on the main display of your Mac."

Hence a few questions:
- EPD64 is a framework, so its python executable should qualify as a
"Framework build of python", right?
- maybe this is because it is not called "Python.framework"?
- any plans to eventually merge the MacOSX 32 bits and 64 bits distributions
as two different versions in Python.framework?

Regards
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

CheckboxColumn

Bruce Dayton
Hi,

Anyone have any ideas on this problem? I just upgraded from Ubuntu 9.10
to 11.04 and I now having a problem using checkbox_column (which worked
on 9.10). [ Python 2.6.4 to 2.7.1+, python-enthoughtbase 3.03-1 to
3.0.6-1ubuntu1]

My code looks like this

42   from enthought.traits.ui.extras.checkbox_column \
43       import CheckboxColumn

67   columns  = [ CheckboxColumn( name  = 'do_line',  label = 'Process
Line',width=100),
68                 SurveyColumn( name = 'line', editable = False,
horizontal_alignment = 'left' ),
69                 SurveyColumn( name   = 'component_type',     label  =
'Type' ,editable=False)])

And the error that I am now getting is:

File
"/home/brucedayton/workspace/ArjunAir_gui_1/src/Mods/Popup/popup_dialog.py",
line 42, in <module>
     from enthought.traits.ui.extras.checkbox_column \
   File
"/usr/lib/python2.6/dist-packages/enthought/traits/ui/extras/checkbox_column.py",
line 36, in <module>
     raise NotImplementedError, "No checkbox renderer for backend"
NotImplementedError: No checkbox renderer for backend

The code for checkbox_column.py looks like this:

if ETSConfig.toolkit == 'wx':
     from ....pyface.ui.wx.grid.checkbox_renderer import CheckboxRenderer
elif ETSConfig.toolkit == 'qt4':
     from ..qt4.extra.checkbox_renderer import CheckboxRenderer
else:
     raise NotImplementedError, "No checkbox renderer for backen

I'm getting the NotImplementedError.

What can I do about this?

Thanks in advance.

Bruce


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: CheckboxColumn

Jonathan Rocher
Hi Bruce,

Which backend are you using?

If you are not sure, try adding the following code at the beginning of your
application launcher:
import enthought.qt
from enthought.etsconfig.api import ETSConfig
# Select the toolkit to use:
ETSConfig.toolkit == 'wx'
#ETSConfig.toolkit='qt4'

and comment out the backend you don't want to use.

Hope this helps.
Jonathan

On Fri, Jul 29, 2011 at 5:55 PM, Bruce Dayton <[hidden email]
> wrote:

> Hi,
>
> Anyone have any ideas on this problem? I just upgraded from Ubuntu 9.10
> to 11.04 and I now having a problem using checkbox_column (which worked
> on 9.10). [ Python 2.6.4 to 2.7.1+, python-enthoughtbase 3.03-1 to
> 3.0.6-1ubuntu1]
>
> My code looks like this
>
> 42   from enthought.traits.ui.extras.checkbox_column \
> 43       import CheckboxColumn
>
> 67   columns  = [ CheckboxColumn( name  = 'do_line',  label = 'Process
> Line',width=100),
> 68                 SurveyColumn( name = 'line', editable = False,
> horizontal_alignment = 'left' ),
> 69                 SurveyColumn( name   = 'component_type',     label  =
> 'Type' ,editable=False)])
>
> And the error that I am now getting is:
>
> File
>
> "/home/brucedayton/workspace/ArjunAir_gui_1/src/Mods/Popup/popup_dialog.py",
> line 42, in <module>
>     from enthought.traits.ui.extras.checkbox_column \
>   File
>
> "/usr/lib/python2.6/dist-packages/enthought/traits/ui/extras/checkbox_column.py",
> line 36, in <module>
>     raise NotImplementedError, "No checkbox renderer for backend"
> NotImplementedError: No checkbox renderer for backend
>
> The code for checkbox_column.py looks like this:
>
> if ETSConfig.toolkit == 'wx':
>     from ....pyface.ui.wx.grid.checkbox_renderer import CheckboxRenderer
> elif ETSConfig.toolkit == 'qt4':
>     from ..qt4.extra.checkbox_renderer import CheckboxRenderer
> else:
>     raise NotImplementedError, "No checkbox renderer for backen
>
> I'm getting the NotImplementedError.
>
> What can I do about this?
>
> Thanks in advance.
>
> Bruce
>
>
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>



--
Jonathan Rocher, PhD
Scientific software developer
Enthought, Inc.
[hidden email]
1-512-536-1057
http://www.enthought.com
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev