We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1ccf15 + 65a3fd9 commit 9276b13Copy full SHA for 9276b13
forcefield_step/tk_forcefield.py
@@ -50,7 +50,10 @@ def edit(self):
50
forcefields = self._update_forcefields()
51
forcefield = self["forcefield_file"].get()
52
self["forcefield_file"].combobox.configure(value=forcefields)
53
- width = max([len(f) for f in forcefields])
+ if forcefields:
54
+ width = max([len(f) for f in forcefields])
55
+ else:
56
+ width = 0
57
self["forcefield_file"].combobox.configure(width=width)
58
if forcefield not in forcefields:
59
if len(forcefields) == 0:
0 commit comments