Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9413188

Browse files
committed
Merge pull request #5514 from fariza/string-format-example
adding str to force string in format
2 parents 4654a9f + 43e3dcb commit 9413188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/user_interfaces/toolmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def trigger(self, *args, **kwargs):
4141
print("{0:12} {1:45}".format("Group", "Active"))
4242
print('-' * 80)
4343
for group, active in self.toolmanager.active_toggle.items():
44-
print("{0:12} {1:45}".format(group, active))
44+
print("{0:12} {1:45}".format(str(group), str(active)))
4545

4646

4747
class GroupHideTool(ToolToggleBase):

0 commit comments

Comments
 (0)