Search Criteria
Package Details: wxglade 0.9.5-1
Git Clone URL: | https://aur.archlinux.org/wxglade.git (read-only, click to copy) |
---|---|
Package Base: | wxglade |
Description: | GUI designer for wxWidgets that can generate Python, C++, Perl, Lisp and XRC code |
Upstream URL: | http://wxglade.sourceforge.net/ |
Licenses: | |
Submitter: | None |
Maintainer: | hikhvar |
Last Packager: | hikhvar |
Votes: | 72 |
Popularity: | 0.000000 |
First Submitted: | 2006-05-07 08:17 |
Last Updated: | 2020-05-19 18:47 |
Latest Comments
eliluminado commented on 2018-04-29 04:23
Last sourcecode https://github.com/wxGlade/wxGlade/archive/v0.8.1.tar.gz
hikhvar commented on 2014-12-04 18:47
Hey,
I updated the PKGBUILD to version 0.7.0. I would adopt the package.
CarstenG commented on 2014-11-02 18:02
Hi,
I'm the current wxGlade developer (the only one) and the wxGlade development needs a lot of time. Thereby I won't maintain the wxGlade package additionally.
Nevertheless I'll always support the package maintainer.
It would be really great if someone else would own this package.
Regards,
Carsten
xyproto commented on 2014-09-21 09:59
@CarstenG Good suggestion! I think you can take better care of this one, please adopt.
CarstenG commented on 2014-08-31 14:08
Hi xyproto,
this patch supports the transition from wxWidgets 2.8 to wxWidgets 3.0. It changes wxGlade to use Python2 and wxWidgets 2.8 always.
=== START PATCH ===
diff -r c164edb5afff -r 039aff30fc1e Makefile
--- a/Makefile Sat Aug 24 10:18:09 2013 +0200
+++ b/Makefile Thu Aug 28 07:13:27 2014 +0200
@@ -19,7 +19,6 @@ datadir = $(datarootdir)
docdir = $(datarootdir)/doc/$(PACKAGE)
mandir = $(datarootdir)/man
man1dir = $(mandir)/man1
-PYVER = 2.3
BASE_DIR = .
BIN_FILES = wxglade
@@ -43,7 +42,7 @@ PYLINT_OPTS = --additional-builtin
--disable=R0201,R0901,R0902,R0903,R0904,R0912,R0913,R0914,R0915 \
--include-ids=y --reports=n
PYLINT_PATH = "$(BASE_DIR):$(BASE_DIR)/widgets:$(BASE_DIR)/codegen"
-PYTHON_BIN = python
+PYTHON_BIN = python2
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP = xsltproc --nonet
diff -r c164edb5afff -r 039aff30fc1e test.py
--- a/test.py Sat Aug 24 10:18:09 2013 +0200
+++ b/test.py Thu Aug 28 07:13:27 2014 +0200
@@ -1,10 +1,10 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""
Create a test suites and run all tests
@see: L{wxglade.tests}
-@copyright: 2012 Carsten Grohmann
+@copyright: 2012-2014 Carsten Grohmann
@license: MIT (see license.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""
@@ -12,6 +12,7 @@ Create a test suites and run all tests
import gettext
import imp
import os
+import sys
import unittest
from optparse import OptionParser
@@ -33,6 +34,19 @@ def run_tests(gui_tests=False):
if '__init__.py' in modules:
modules.remove('__init__.py')
+ # select proper wxversion
+ if gui_tests:
+ # import proper wx-module using wxversion
+ if not hasattr(sys, "frozen") and 'wx' not in sys.modules:
+ try:
+ import wxversion
+ # Currently we use wxPython 2.8 only
+ wxversion.select('2.8')
+ #wxversion.ensureMinimal('2.8')
+ except ImportError:
+ print _('Please install missing python module "wxversion".')
+ sys.exit(1)
+
# try to import all files as modules
for module_name in modules:
if (not module_name.endswith('.py')) or \
@@ -49,7 +63,7 @@ def run_tests(gui_tests=False):
if fp:
fp.close()
- # search all testcases in the loaded module
+ # search all test cases in the loaded module
suites.append(unittest.findTestCases(module))
# summarise all suites and run tests
diff -r c164edb5afff -r 039aff30fc1e wxglade
--- a/wxglade Sat Aug 24 10:18:09 2013 +0200
+++ b/wxglade Thu Aug 28 07:13:27 2014 +0200
@@ -3,7 +3,7 @@
# License: MIT (see license.txt)
# THIS PROGRAM COMES WITH NO WARRANTY
#
-# Copyright 2011-2012 Carsten Grohmann
+# Copyright 2011-2013 Carsten Grohmann
#
# Shell script to start wxGlade
#
@@ -13,8 +13,16 @@
# 2. in the module directory of the current Python
# 3. in a parallel Python module directory
-# determinate current python version
-PY_VERSION=$(python -c 'import sys; print sys.version[:3]')
+PYTHON_BIN=${PYTHON_BIN:=python2}
+
+${PYTHON_BIN} --version > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+ echo "ERROR: Python interpreter \"${PYTHON_BIN}\" found!"
+ exit 1
+fi
+
+# determined current python version
+PY_VERSION=$(${PYTHON_BIN} -c 'import sys; print sys.version[:3]')
# determinate prefix of the Python module directory structure
if [ -e /etc/debian_version ]; then
@@ -38,4 +46,4 @@ else
fi
# exec wxGlade
-exec python "${WXG_PATH}" "$@"
+exec ${PYTHON_BIN} "${WXG_PATH}" "$@"
diff -r c164edb5afff -r 039aff30fc1e wxglade.py
--- a/wxglade.py Sat Aug 24 10:18:09 2013 +0200
+++ b/wxglade.py Thu Aug 28 07:13:27 2014 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""
Entry point of wxGlade
@@ -245,13 +245,26 @@ def init_stage2(use_gui):
"""
common.use_gui = use_gui
if use_gui:
- # ensure minimal wx version
- if not hasattr(sys, 'frozen') and \
- 'wxversion' not in sys.modules and \
- 'wx' not in sys.modules:
- import wxversion
- wxversion.ensureMinimal("2.6")
-
+ # import proper wx-module using wxversion
+ if not hasattr(sys, "frozen") and 'wx' not in sys.modules:
+ try:
+ import wxversion
+ # Currently we use wxPython 2.8 only
+ wxversion.select('2.8')
+ #wxversion.ensureMinimal('2.8')
+ except ImportError:
+ logging.error(
+ _('Please install missing python module "wxversion".'))
+ sys.exit(1)
+
+ try:
+ import wx
+ except ImportError:
+ logging.error(
+ _('Please install missing python module "wxPython".')
+ )
+ sys.exit(1)
+
# store current platform (None is default)
import wx
common.platform = wx.Platform
diff -r c164edb5afff -r 039aff30fc1e xrc2wxg.py
--- a/xrc2wxg.py Sat Aug 24 10:18:09 2013 +0200
+++ b/xrc2wxg.py Thu Aug 28 07:13:27 2014 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""
Converts an XRC resource file (in a format wxGlade likes, i.e. all windows
inside sizers, no widget unknown to wxGlade, ...) into a WXG file.
=== END PATCH ===
Please integrate the patch your wxGlade package.
Thank you,
Carsten
xyproto commented on 2013-10-13 14:44
Adopted the package.
iframe commented on 2012-03-20 18:20
# Maintainer: Brad Fanella <bradfanella@archlinux.us>
# Contributor: jrutila
# Contributor: grimi <grimi@poczta.fm>
# Contributor: jht <stefano@inventati.org>
pkgname=wxglade
pkgver=0.6.5
pkgrel=2
pkgdesc="A GUI designer for wxWidgets written in Python"
arch=('i686' 'x86_64')
license=('MIT')
url="http://wxglade.sourceforge.net/"
depends=('wxpython')
makedepends=('sed')
source=("http://downloads.sourceforge.net/sourceforge/wxglade/wxGlade-$pkgver.tar.gz" \
"wxglade.desktop")
md5sums=('983715e105e53a0d82efbe1fa8cf4361'
'50a9ad5d58bb6cd7f71bfa93aa131162')
build() {
mkdir -p $startdir/pkg/usr/lib
cp -R $startdir/src/wxGlade-$pkgver/ $startdir/pkg/usr/lib/wxGlade-$pkgver/
mkdir -p $startdir/pkg/usr/bin/
echo "python2 /usr/lib/wxGlade-$pkgver/wxglade.py" > $startdir/pkg/usr/bin/wxglade
chmod 755 $startdir/pkg/usr/bin/wxglade
cd $startdir/src/wxGlade-$pkgver
# Copy license.txt and credist.txt
install -D -m644 license.txt $startdir/pkg/usr/share/licenses/wxglade
# Install launcher
install -D -m644 icons/icon.xpm $startdir/pkg/usr/share/pixmaps/wxglade.xpm
install -D -m644 $startdir/src/wxglade.desktop $startdir/pkg/usr/share/applications/wxglade.desktop
}
mahmoudhossam commented on 2012-01-14 04:51
version 0.6.5 has been released on January 8th, please update this package.
Anonymous comment on 2010-11-21 19:34
This package should use python2
Python version 2.7 worked for me. Below is a working build() for the PKGBUILD.
http://aur.pastebin.com/EnMWSdY9
Anonymous comment on 2010-10-21 00:15
diff --git a/src/wxGlade-0.6.3/wxglade b/src/wxGlade-0.6.3/wxglade
index 19e51bf..7fae489 100755
--- a/src/wxGlade-0.6.3/wxglade
+++ b/src/wxGlade-0.6.3/wxglade
@@ -2,4 +2,4 @@
#pv=`python -c 'import sys; print sys.version[:3]'`
pv="2.3"
-exec python /usr/lib/python$pv/site-packages/wxglade/wxglade.py "$@"
+exec python2 /usr/lib/python$pv/site-packages/wxglade/wxglade.py "$@"