mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 11:51:58 +02:00
[core] Remove of saving PushButton behavior
This commit is contained in:
parent
55c657dc1d
commit
862c5506a9
2 changed files with 1 additions and 18 deletions
|
@ -6,7 +6,6 @@ import re
|
|||
import weakref
|
||||
import types
|
||||
import logging
|
||||
import inspect
|
||||
|
||||
from collections.abc import Iterable, Sequence
|
||||
from string import Template
|
||||
|
@ -428,14 +427,6 @@ def raiseIfLink(func):
|
|||
class PushButtonParam(Attribute):
|
||||
def __init__(self, node, attributeDesc, isOutput, root=None, parent=None):
|
||||
super(PushButtonParam, self).__init__(node, attributeDesc, isOutput, root, parent)
|
||||
|
||||
def getExportValue(self):
|
||||
""" Return the function defined of the PushButtonParam """
|
||||
paramName = self.name[:1].upper() + self.name[1:]
|
||||
methodName = f'on{paramName}Clicked'
|
||||
if hasattr(self.node.nodeDesc, methodName):
|
||||
return inspect.getsource(getattr(self.node.nodeDesc, methodName))
|
||||
return f'def {methodName}:\n pass'
|
||||
|
||||
@Slot()
|
||||
def clicked(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue