console traceback when clicked on "font"
Bug #394041 reported by
DrSlony
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Phatch |
Fix Released
|
High
|
Stani |
Bug Description
Open this action list, doubleclick on "Font: Default", click on the file browser icon for browsing fonts, an empty tooltip pops up which would normally contain a list of fonts, and this appears in the console each time I click on the file browser icon:
Traceback (most recent call last):
File "/usr/lib64/
defaultFile = self.GetDefault
File "/usr/lib64/
return super(FontFileC
TypeError: GetDefaultPath() takes exactly 1 argument (2 given)
Changed in phatch: | |
milestone: | none → 0.2.1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi,
Thanks for reporting this bug. I was able to reproduce the issue. It was simply because GetDefaultPath is overridden with different number of arguments in subclasses. In python there is no overloading, so if a subclass defines a method with the same name as a method in the parent. That method will override the parent method even if it had different number of arguments. There are two ways to fix this: GetDefaultPath( self, default_path)
1. Explicitly call the base class method _PathCtrl.
2. Change the base class method name to something else and make sure all child methods are updated to use the new name.
I prefer the second solution, but I'll let Stani decide.