Python Forum
[PyQt] Call object with string
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Call object with string
#3
(Oct-27-2020, 06:10 PM)ndc85430 Wrote: Why do you want to do that in the first place? If you have multiple objects and want to choose the right one, why aren't you storing them in a collection (e.g. a list/tuple/dict/set as appropriate) and retrieving the right one from that using whatever criteria?

Well that is where I am heading with this code, but I am running into this problem where I can't store the object itself. It ends up only storing the string that gets passed and then I can't get the user entered text out of "FormulationName" or "FormulationLot" fields. The end idea is to take the FormulationName, FormulationLot, TimePointLabel, and any storage conditions that might have been checked (e.g. 5C, 25C, 30C) and export these to a csv file for vial labeling software to read. My thought is to store the user entered text in a dictionary of lists maybe? for a pandas dataframe and export that to excel.

Am I overthinking the problem?
Reply


Messages In This Thread
Call object with string - by PEGylated_User - Oct-27-2020, 05:44 PM
RE: Call object with string - by ndc85430 - Oct-27-2020, 06:10 PM
RE: Call object with string - by PEGylated_User - Oct-27-2020, 06:23 PM
RE: Call object with string - by Axel_Erfurt - Oct-27-2020, 06:50 PM
RE: Call object with string - by deanhystad - Oct-27-2020, 09:36 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020