Re: Testers required
Udi Fuchs <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CABznK11pjLDoG9DYy_1crxMHdKDVsqTy7C6CvJKZL2V+o4dxCg@mail.gmail.com> |
Hi, Here are a few issues with today's code from https://bitbucket.org/wxglade/wxglade. I'm using Ubuntu, python 2.7.12, wxPython 3.0.2 classic. 1. The program does not start because args point to files on your system. Fixed with args.patch 2. CustomWidgets crashes wxglade. Fixed with custom_widgets.patch 3. Trying to modify TextCtrl font crashes. Fixed with font.patch 4. Text control fonts are saved to wxg, but wxglade ignores the font when opening file, with no error message. Can easily be reproduced by changing the font in tests/casefiles/FontColour.wxg I also noticed that the order of xml elements in wxg files changed. It is a bit annoying when trying to figure out what changed in a wxg file. I'm not sure what determines the order, but it would be nice if this order could be locked down to something deterministic. That's it for today, Udi ------------------------------------------------------------------------------ _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general
font.patch
(text/x-diff, 447 B)
diff -r 203d95d6fdad new_properties.py
--- a/new_properties.py Fri Sep 16 21:16:04 2016 +0200
+++ b/new_properties.py Thu Sep 22 21:25:13 2016 -0500
@@ -908,7 +908,7 @@
# when the value has changed
if start_editing: self.editing = True
if not self.editing: return
- self.text.SetValue(self.value)
+ self.text.SetValue(str(self.value))
def on_char(self, event):
if self.text is None: return
args.patch
(text/x-diff, 1.1 KB)
diff -r 203d95d6fdad wxglade.py
--- a/wxglade.py Fri Sep 16 21:16:04 2016 +0200
+++ b/wxglade.py Thu Sep 22 21:25:13 2016 -0500
@@ -124,7 +124,7 @@
# from '.' if it is invoked from a shell script).
#args = [u'F:\\PythonInstallation\\wxGladeTest\\test.wxg']
# XXX cleanup
- args = [u"D:\\Python\\Sources35\\wxGladeTests\\Test_release_072_v2-TextCtrls.wxg"]
+ #args = [u"D:\\Python\\Sources35\\wxGladeTests\\Test_release_072_v2-TextCtrls.wxg"]
#args = [u"D:\\Python\\Sources35\\wxGladeTests\\Test_release_072_v3-SingleSizer.wxg"]
##args = [os.getcwd() + u"\\tests\\casefiles\\AllWidgets_28.wxg"]
#args = [u"D:\\Python\\Sources35\\wxGladeTests\\AllWidgets_28_05.wxg"]
@@ -138,8 +138,8 @@
#args = ["C:\\Users\\dietmar\\grid_test.wxg"]
#args = ["C:\\Users\\dietmar\\sizer_min.wxg"]
#args = ["C:\\Users\\dietmar\\nested_sizers.wxg"]
- args = ["C:\\Users\\dietmar\\test_splitter.wxg"]
- args = ["C:\\Users\\dietmar\\class_names.wxg"]
+ #args = ["C:\\Users\\dietmar\\test_splitter.wxg"]
+ #args = ["C:\\Users\\dietmar\\class_names.wxg"]
if len(args) == 1:
filename = args[0]
custom_widgets.patch
(text/x-diff, 721 B)
diff -r 203d95d6fdad widgets/custom_widget/custom_widget.py
--- a/widgets/custom_widget/custom_widget.py Fri Sep 16 21:16:04 2016 +0200
+++ b/widgets/custom_widget/custom_widget.py Thu Sep 22 21:25:13 2016 -0500
@@ -161,7 +161,7 @@
raise XmlParsingError(_("'name' attribute missing"))
if not sizer or not sizeritem:
raise XmlParsingError(_("sizer or sizeritem object cannot be None"))
- win = CustomWidget(name, 'CustomWidget', parent, wx.NewId(), sizer, pos, True)
+ win = CustomWidget(name, 'CustomWidget', parent, wx.NewId(), sizer, pos)
sizer.set_item(win.pos, proportion=sizeritem.proportion, flag=sizeritem.flag, border=sizeritem.border)
node = Node(win)
win.node = node