Package Details: wxglade 1.0.4-2

Git Clone URL: https://aur.archlinux.org/wxglade.git (read-only, click to copy)
Package Base: wxglade
Description: wxGlade is a GUI builder written in Python for the GUI toolkit wxWidgets/wxPython
Upstream URL: https://github.com/wxGlade/wxGlade
Keywords: wxglade wxpython wxwidgets
Licenses: MIT
Submitter: None
Maintainer: FirstAirBender
Last Packager: FirstAirBender
Votes: 72
Popularity: 0.043445
First Submitted: 2006-05-07 08:17 (UTC)
Last Updated: 2022-07-18 01:42 (UTC)

Latest Comments

1 2 Next › Last »

itoffshore commented on 2022-09-03 00:24 (UTC)

this diff currently works:

https://github.com/wxGlade/wxGlade/pull/519#issuecomment-1235998013

with this added to the end of prepare()

cd "$srcdir/$pkgname-$pkgver"
patch --strip=1 --input=../python3.10.patch

FirstAirBender commented on 2022-07-18 01:37 (UTC)

Currently broken in python 3.10+, due to version detection bug. Should be fixed when this PR is merged

bkb commented on 2022-07-17 11:17 (UTC)

All these wx things are basically broken. Some needs a newer version, some needs the old one. A long chain of dependency made it impossible to even switch from old to new or new to old, without uninstalling nearly the OS

eliluminado commented on 2018-04-29 04:23 (UTC)

Last sourcecode https://github.com/wxGlade/wxGlade/archive/v0.8.1.tar.gz

hikhvar commented on 2014-12-04 18:47 (UTC)

Hey, I updated the PKGBUILD to version 0.7.0. I would adopt the package.

CarstenG commented on 2014-11-02 18:02 (UTC)

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 (UTC)

@CarstenG Good suggestion! I think you can take better care of this one, please adopt.

CarstenG commented on 2014-08-31 14:08 (UTC)

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 (UTC)

Adopted the package.