Skip to content

Commit

Permalink
Added grant info
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsaxe committed Nov 11, 2023
1 parent b4d50ea commit 4fa4bfb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions seamm/tk_start_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""The start node in a flowchart"""

import copy
import pprint # noqa: F401
import tkinter as tk
import tkinter.ttk as ttk

Expand Down Expand Up @@ -74,6 +75,8 @@ def update_widgets(self):
self["description"].delete("1.0", tk.END)
self["description"].insert("1.0", metadata["description"])
self["keywords"].set(", ".join(metadata["keywords"]))
if "grants" in metadata:
self["grants"].set(", ".join(metadata["grants"]))

# layout the authors
self._author_data = copy.deepcopy(metadata["creators"])
Expand Down Expand Up @@ -156,6 +159,13 @@ def create_frame(self, parent_widget):
w.grid(row=row, column=0, sticky=tk.EW)
row += 1

# grants
w = self["grants"] = sw.LabeledEntry(
frame, labeltext="Grants (DOIs, comma separated):", width=100
)
w.grid(row=row, column=0, sticky=tk.EW)
row += 1

# authors
w = self["authors label"] = ttk.Label(frame, text="Authors")
w.grid(row=row, column=0)
Expand Down

0 comments on commit 4fa4bfb

Please sign in to comment.