OSDN Git Service
(root)
/
nvdajp
/
nvdajp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69b7af3
)
SettingsDialog.__new__: Some subclasses take more than one argument, so accept a...
author
James Teh
<jamie@jantrid.net>
Tue, 15 Feb 2011 20:47:35 +0000
(06:47 +1000)
committer
James Teh
<jamie@jantrid.net>
Tue, 15 Feb 2011 20:47:35 +0000
(06:47 +1000)
Fixes broken dictionary dialog.
source/gui/settingsDialogs.py
patch
|
blob
|
history
diff --git
a/source/gui/settingsDialogs.py
b/source/gui/settingsDialogs.py
index
7ab0323
..
ef0acc7
100644
(file)
--- a/
source/gui/settingsDialogs.py
+++ b/
source/gui/settingsDialogs.py
@@
-45,10
+45,10
@@
class SettingsDialog(wx.Dialog):
\r
title = ""
\r
\r
- def __new__(cls,
parent
):
\r
+ def __new__(cls,
*args, **kwargs
):
\r
if SettingsDialog._hasInstance:
\r
raise SettingsDialog.MultiInstanceError("Only one instance of SettingsDialog can exist at a time")
\r
- obj = super(SettingsDialog, cls).__new__(cls,
parent
)
\r
+ obj = super(SettingsDialog, cls).__new__(cls,
*args, **kwargs
)
\r
SettingsDialog._hasInstance=True
\r
return obj
\r
\r