Berkin Malkoc | 1 Oct 2010 11:29
Picon

Re: extending Python with C

 
I've been trying to understand how to use the C API for more than a week, but unfortunately I understand absolutely nothing.
Do you know if there is some French documentation ? (and where can I found it ??)

Bonjour,

I think a more appropriate list for this question can be found among the python lists (http://www.python.org/community/lists/).  On the other hand, if what you are trying to do can be accomplished using C/C++ code within Python you may also want to have a look at Cython.

Regards,
bm

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to pythonxy+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.
sebastian06 | 5 Oct 2010 21:45

matplotlib widget & QtDesigner

Hi guys,

I use pythonxy at work and at home. Since I can not use Ubuntu 10.04
during my job, I have to stick to WindowsXP.
And here is my problem. When I start the QtDesigner from the Python,
the designer has the very easy to use matplotlib widget.
At home, where I have only Spyder (no PythonXY ...), I start the
QtDesigner from there, this widget is missing in the designer widget
box. Is there a way to integrate the matplotlib widget in the same way
it was done for the windows software or do I have to create the widget
by myself. And can I add it to the widget toolbox?

Thanks for your help,

Sebastian

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

Pierre Raybaut | 6 Oct 2010 21:00

Re: matplotlib widget & QtDesigner

Hi,

You may directly use the Matplotlib Qt Designer plugin which is
shipped with Python(x,y).
It is located here: "C:\Python26\Lib\site-packages\PyQt4\plugins
\designer\python".

On your linux machine, create an environment variable called
PYQTDESIGNERPATH, and set it to the directory containing
'matplotlibplugin.py'. That's all!

For more information on how to create Qt Designer plugins for PyQt4:
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#writing-qt-designer-plugins

Cheers,
Pierre

On 5 oct, 21:45, sebastian06 <sebrh...@...> wrote:
> Hi guys,
>
> I use pythonxy at work and at home. Since I can not use Ubuntu 10.04
> during my job, I have to stick to WindowsXP.
> And here is my problem. When I start the QtDesigner from the Python,
> the designer has the very easy to use matplotlib widget.
> At home, where I have only Spyder (no PythonXY ...), I start the
> QtDesigner from there, this widget is missing in the designer widget
> box. Is there a way to integrate the matplotlib widget in the same way
> it was done for the windows software or do I have to create the widget
> by myself. And can I add it to the widget toolbox?
>
> Thanks for your help,
>
> Sebastian

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

Pierre Raybaut | 6 Oct 2010 21:03

Re: Python 2.6 location

Hi,

Could you please post the complete error message when running the
IPython(x,y) shortcut?

thx
Pierre

On 29 sep, 14:24, cyril giraudon <cyril.girau...@...> wrote:
> Hello,
>
> I 've just installed pythonxy Python(x,y)-2.6.5.3.exe on a windows XP
> 32 machine with normal user permissions.
>
> All is installed in a pythonxy directory, python26 included (xxx
> \pythonxy\python26).
>
> When I run python(x,y) then select "Consoles interactives" /
> IPython(x, y), python is requested to be C:\python26\python.exe, where
> there is no python installation.
>
> In the Windows Registry, python is the right location directory.
>
> How can I set up python location for pythonxy ?
>
> Thanks a lot,
>
> Cyril.

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

sebastian06 | 9 Oct 2010 11:08

Re: matplotlib widget & QtDesigner

Hi Pierre,

thanks for the hint, but it still does not work. Here is what I did

PYQTDESIGNERPATH=/home/sebi/Applications/QtDesigner_Plugins (--> here
is matplotlibplugin-py located in Linux)
export PYQTDESIGNERPATH
echo PYQTDESIGNERPATH
...
PYQTDESIGNERPATH=/home/sebi/Applications/QtDesigner_Plugins

This looks fine to me, but when I start the Qt Designer, there is
matplotlibplugin widget. And if I log off & on again, the environment
variable is gone ...

Any idea, what I did wrong?

Cheers,

Sebi

On Oct 6, 9:00 pm, Pierre Raybaut <cont...@...> wrote:
> Hi,
>
> You may directly use the Matplotlib Qt Designer plugin which is
> shipped with Python(x,y).
> It is located here: "C:\Python26\Lib\site-packages\PyQt4\plugins
> \designer\python".
>
> On your linux machine, create an environment variable called
> PYQTDESIGNERPATH, and set it to the directory containing
> 'matplotlibplugin.py'. That's all!
>
> For more information on how to create Qt Designer plugins for PyQt4:http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#w...
>
> Cheers,
> Pierre
>
> On 5 oct, 21:45, sebastian06 <sebrh...@...> wrote:
>
> > Hi guys,
>
> > I use pythonxy at work and at home. Since I can not use Ubuntu 10.04
> > during my job, I have to stick to WindowsXP.
> > And here is my problem. When I start the QtDesigner from the Python,
> > the designer has the very easy to use matplotlib widget.
> > At home, where I have only Spyder (no PythonXY ...), I start the
> > QtDesigner from there, this widget is missing in the designer widget
> > box. Is there a way to integrate the matplotlib widget in the same way
> > it was done for the windows software or do I have to create the widget
> > by myself. And can I add it to the widget toolbox?
>
> > Thanks for your help,
>
> > Sebastian
>
>

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

Pierre Raybaut | 9 Oct 2010 11:21

Re: matplotlib widget & QtDesigner

Actually you have to add this environment variable in your .bashrc
configuration file (or .cshrc depending on your terminal): this way,
it will be taken into account the next time you log in. If you only
add it in a terminal, it will have no effect on other terminals and on
Qt Designer if you are executing it from a system menu shortcut.

To simply test this, you'll have to execute Qt Designer just after
adding the environment variable, i.e. in the same terminal.

Pierre

On Oct 9, 11:08 am, sebastian06 <sebrh...@...> wrote:
> Hi Pierre,
>
> thanks for the hint, but it still does not work. Here is what I did
>
> PYQTDESIGNERPATH=/home/sebi/Applications/QtDesigner_Plugins (--> here
> is matplotlibplugin-py located in Linux)
> export PYQTDESIGNERPATH
> echo PYQTDESIGNERPATH
> ...
> PYQTDESIGNERPATH=/home/sebi/Applications/QtDesigner_Plugins
>
> This looks fine to me, but when I start the Qt Designer, there is
> matplotlibplugin widget. And if I log off & on again, the environment
> variable is gone ...
>
> Any idea, what I did wrong?
>
> Cheers,
>
> Sebi
>
> On Oct 6, 9:00 pm, Pierre Raybaut <cont...@...> wrote:
>
>
>
> > Hi,
>
> > You may directly use the Matplotlib Qt Designer plugin which is
> > shipped with Python(x,y).
> > It is located here: "C:\Python26\Lib\site-packages\PyQt4\plugins
> > \designer\python".
>
> > On your linux machine, create an environment variable called
> > PYQTDESIGNERPATH, and set it to the directory containing
> > 'matplotlibplugin.py'. That's all!
>
> > For more information on how to create Qt Designer plugins for PyQt4:http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#w...
>
> > Cheers,
> > Pierre
>
> > On 5 oct, 21:45, sebastian06 <sebrh...@...> wrote:
>
> > > Hi guys,
>
> > > I use pythonxy at work and at home. Since I can not use Ubuntu 10.04
> > > during my job, I have to stick to WindowsXP.
> > > And here is my problem. When I start the QtDesigner from the Python,
> > > the designer has the very easy to use matplotlib widget.
> > > At home, where I have only Spyder (no PythonXY ...), I start the
> > > QtDesigner from there, this widget is missing in the designer widget
> > > box. Is there a way to integrate the matplotlib widget in the same way
> > > it was done for the windows software or do I have to create the widget
> > > by myself. And can I add it to the widget toolbox?
>
> > > Thanks for your help,
>
> > > Sebastian

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

sebastian06 | 10 Oct 2010 10:03

Re: matplotlib widget & QtDesigner

Hi Pierre,

this is what I also found out and i addes the following lines to
my .profile and .bashrc file

...
# Add a directory to PYTHONPATH
export PYTHONPATH=/home/sebi/Appilcations/QtDesigner_Plugins:
$PYTHONPATH
# Add a directory to QTDESIGNERPATH
export QTDESIGNERPATH=/home/sebi/Appications/QtDesigner_Plugins:
$PYTHONPATH

This directory contains the matplotlibplugin.py

Now both environment variables are there right after loggin in.

But unfortunately the widget just refuses to show up inside the
QtDesigner.

Cheers,

Sebi

On 9 Okt., 11:21, Pierre Raybaut <cont...@...> wrote:
> Actually you have to add this environment variable in your .bashrc
> configuration file (or .cshrc depending on your terminal): this way,
> it will be taken into account the next time you log in. If you only
> add it in a terminal, it will have no effect on other terminals and on
> Qt Designer if you are executing it from a system menu shortcut.
>
> To simply test this, you'll have to execute Qt Designer just after
> adding the environment variable, i.e. in the same terminal.
>
> Pierre
>
> On Oct 9, 11:08 am, sebastian06 <sebrh...@...> wrote:
>
> > Hi Pierre,
>
> > thanks for the hint, but it still does not work. Here is what I did
>
> > PYQTDESIGNERPATH=/home/sebi/Applications/QtDesigner_Plugins (--> here
> > is matplotlibplugin-py located in Linux)
> > export PYQTDESIGNERPATH
> > echo PYQTDESIGNERPATH
> > ...
> > PYQTDESIGNERPATH=/home/sebi/Applications/QtDesigner_Plugins
>
> > This looks fine to me, but when I start the Qt Designer, there is
> > matplotlibplugin widget. And if I log off & on again, the environment
> > variable is gone ...
>
> > Any idea, what I did wrong?
>
> > Cheers,
>
> > Sebi
>
> > On Oct 6, 9:00 pm, Pierre Raybaut <cont...@...> wrote:
>
> > > Hi,
>
> > > You may directly use the Matplotlib Qt Designer plugin which is
> > > shipped with Python(x,y).
> > > It is located here: "C:\Python26\Lib\site-packages\PyQt4\plugins
> > > \designer\python".
>
> > > On your linux machine, create an environment variable called
> > > PYQTDESIGNERPATH, and set it to the directory containing
> > > 'matplotlibplugin.py'. That's all!
>
> > > For more information on how to create Qt Designer plugins for PyQt4:http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#w...
>
> > > Cheers,
> > > Pierre
>
> > > On 5 oct, 21:45, sebastian06 <sebrh...@...> wrote:
>
> > > > Hi guys,
>
> > > > I use pythonxy at work and at home. Since I can not use Ubuntu 10.04
> > > > during my job, I have to stick to WindowsXP.
> > > > And here is my problem. When I start the QtDesigner from the Python,
> > > > the designer has the very easy to use matplotlib widget.
> > > > At home, where I have only Spyder (no PythonXY ...), I start the
> > > > QtDesigner from there, this widget is missing in the designer widget
> > > > box. Is there a way to integrate the matplotlib widget in the same way
> > > > it was done for the windows software or do I have to create the widget
> > > > by myself. And can I add it to the widget toolbox?
>
> > > > Thanks for your help,
>
> > > > Sebastian
>
>

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

cyril giraudon | 11 Oct 2010 16:27
Picon

Re: Python 2.6 location

I'm sorry Pierre, but I 've decided to install pythonxy as
administrator to simplify the process and make things work.
I can't remember the exact error message, something like :
When the ipython console pops up, it shows "C:\Python2.6\python.exe
not a command"

Regards,

Cyril.

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

dartdog | 24 Oct 2010 16:39
Picon

Kind of basic but How do I find the Python (xy) version

I installed it a while ago (and have used infrequently but planning on
more) and wanted to run the right upgrade package,, but can't find xy
version # so I can use the right sequence of upgrade installers? Each
of the components has abouts but how to I figure out the "overall"?

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.

Goyo | 25 Oct 2010 16:08
Picon

Re: Kind of basic but How do I find the Python (xy) version

On Oct 24, 4:39 pm, dartdog <tombran...@...> wrote:
> I installed it a while ago (and have used infrequently but planning on
> more) and wanted to run the right upgrade package,, but can't find xy
> version # so I can use the right sequence of upgrade installers? Each
> of the components has abouts but how to I figure out the "overall"?

Run the Pythonxy program and look at the top of the window, just under
the windows title bar.

--

-- 
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pythonxy@...
To unsubscribe from this group, send email to pythonxy+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.


Gmane