Skip to content
Snippets Groups Projects
Commit f9a89935 authored by jkerdreu's avatar jkerdreu
Browse files

Added methods to dump.

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2760 b32b6428-25c9-4566-ad07-03861ab6144f
parent 70f5f7c8
Branches
Tags
No related merge requests found
......@@ -223,6 +223,13 @@ class Device(object):
r.append([k,str(v)])
print(tabulate(r,tablefmt="fancy_grid"))
# methods
if len(self.methods) > 0:
r = []
for k,v in self.methods.items():
r.append([k,v.__name__])
print(tabulate(r,tablefmt="fancy_grid"))
def __repr__(self):
return f"<xaal.Device {id(self):x} {self.address} {self.dev_type}>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment