Skip to content

Commit 9276b13

Browse files
committed
merge
2 parents a1ccf15 + 65a3fd9 commit 9276b13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

forcefield_step/tk_forcefield.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ def edit(self):
5050
forcefields = self._update_forcefields()
5151
forcefield = self["forcefield_file"].get()
5252
self["forcefield_file"].combobox.configure(value=forcefields)
53-
width = max([len(f) for f in forcefields])
53+
if forcefields:
54+
width = max([len(f) for f in forcefields])
55+
else:
56+
width = 0
5457
self["forcefield_file"].combobox.configure(width=width)
5558
if forcefield not in forcefields:
5659
if len(forcefields) == 0:

0 commit comments

Comments
 (0)