File: 092017C_fixwx30.patch

package info (click to toggle)
dicompyler 0.4.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,896 kB
  • sloc: python: 5,332; makefile: 9
file content (34 lines) | stat: -rw-r--r-- 1,524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Author: Vojtěch Kulvait <kulvait@gmail.com>
Last-Update: Mon Sep 18 23:00:00 CEST 2017
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854837
Description: PrevControlId is no longer method of wx.Window, SetSpacer become AssignSpacer, wxDIALOG_MODAL is no longer valid identifier

diff --git a/dicompyler/preferences.py b/dicompyler/preferences.py
index 82ce7a3..7086af2 100755
--- a/dicompyler/preferences.py
+++ b/dicompyler/preferences.py
@@ -229,10 +229,10 @@ class PreferencesDialog(wx.Dialog):
                     c.SetValue(value)
                     sizer.Add(c, 0, wx.ALIGN_CENTER)
                     # Remove the label preceding the checkbox
-                    t = self.FindWindowById(c.PrevControlId(c.GetId()))
+                    t = c.GetPrevSibling()
                     t.SetLabel('')
                     # Adjust the sizer preceding the label
-                    fgsizer.GetItem(0).SetSpacer((20,0))
+                    fgsizer.GetItem(0).AssignSpacer((20,0))
                     # Add control to the callback dict
                     self.callbackdict[c] = setting['callback']
                     self.Bind(wx.EVT_CHECKBOX, self.OnUpdateCheckbox, c)
--- a/dicompyler/resources/guiutil.xrc
+++ b/dicompyler/resources/guiutil.xrc
@@ -70,6 +70,6 @@
     </object>
     <title>Loading...</title>
     <centered>1</centered>
-    <style>wxCAPTION|wxSTAY_ON_TOP|wxDIALOG_MODAL</style>
+    <style>wxCAPTION|wxSTAY_ON_TOP</style>
   </object>
 </resource>
\ No newline at end of file