[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/3] gnu: Add python2-wxpython.
From: |
Danny Milosavljevic |
Subject: |
Re: [PATCH v2 3/3] gnu: Add python2-wxpython. |
Date: |
Mon, 31 Oct 2016 16:38:34 +0100 |
Hi,
because of wxPython/src/helpers.cpp directly accessing a Gtk (gdk) structure
(in macro GetXWindow) wxpython also requires gtk as regular input.
I've tested it in
$ guix environment --pure --ad-hoc python2-wxpython python-2 -- python
using:
import wxversion
wxversion.select("3.0")
import wx, wx.html
from wx import glcanvas
import wx.lib.fancytext
import sys
app = wx.App(redirect=True) # Error messages go to popup window
top = wx.Frame(None)
box = wx.BoxSizer(wx.VERTICAL)
top.SetSizer(box)
#panel = wx.Panel(top)
canvas = glcanvas.GLCanvas(top)
box.Add(canvas)
canvas.Show()
top.Show()
app.MainLoop()
app = wx.App(redirect=True)
top = wx.Frame(None, title="Hello World", size=(300,200))
top.Show()
app.MainLoop()
#from wx import glcanvas
#from OpenGL.GL import *
#frame = GLFrame(None, -1, 'GL Window')
#frame.Show()
#app.MainLoop()
#app.Destroy()
The wxpython inputs I used were:
(native-inputs
`(("mesa" ,mesa) ; for glcanvas
("pkg-config" ,pkg-config)
("python2-setuptools" ,python2-setuptools)))
(inputs
`(("gtk+" ,gtk+-2) ; for wxPython/src/helpers.cpp
("wxwidgets" ,wxwidgets-gtk2)))
If we even built the X11 backend of wxwidgets, we would require an input
"libx11" - otherwise not.
While wxpython glcanvas isn't very useful without mesa, it doesn't really
require it. As you can see above it can still be imported without mesa.
Therefore, I think the above is the final version of the inputs we should use
for wxpython.
- [PATCH v2 0/3] gnu: Add kicad., (continued)
- [PATCH v2 2/3] gnu: Add kicad., Theodoros Foradis, 2016/10/25
- [PATCH v2 3/3] gnu: Add python2-wxpython., Theodoros Foradis, 2016/10/25
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Leo Famulari, 2016/10/25
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Theodoros Foradis, 2016/10/25
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Leo Famulari, 2016/10/29
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Hartmut Goebel, 2016/10/30
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Danny Milosavljevic, 2016/10/31
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython.,
Danny Milosavljevic <=
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Theodoros Foradis, 2016/10/25
- Re: [PATCH v2 3/3] gnu: Add python2-wxpython., Leo Famulari, 2016/10/25
- [PATCH v3 0/3] gnu: Add kicad., Theodoros Foradis, 2016/10/25
- [PATCH v3 1/3] gnu: Add wxwidgets-gtk2., Theodoros Foradis, 2016/10/25
- [PATCH v3 3/3] gnu: Add kicad., Theodoros Foradis, 2016/10/25
- Re: [PATCH v3 3/3] gnu: Add kicad., Leo Famulari, 2016/10/29
- [PATCH v3 2/2] gnu: Add python2-wxpython., Theodoros Foradis, 2016/10/25