Here’s an example of what I’m talking about. I have this code:
iron_label = tk.Label(label_frame, text=f"Iron Ore: {iron_node.quantity}"
iron_label.pack(padx=10, pady=5)
copper_label = tk.Label(label_frame, text=f"Copper: {copper_node.quantity}")
copper_label.pack(padx=10, pady=5)
So, I’m wanting to create others so instead of retyping them, I would copy/paste and then go highlight and change the things like “iron_node” etc.
Is there a way to take the new code and auto-change each label or whatever inside that one block so I don’t have to retype it all?