Python Forum
read a parameter after updating it in another class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
read a parameter after updating it in another class
#3
(Jul-22-2020, 12:30 PM)Gribouillis Wrote: I don't see a line starting with self.mode = .... How do you expect self.mode to change?

Thanks. I did add it in the data dictionary as 'Mode': self.mode this works i do get the right value first 2 and then 4 after updating the mode to 4 in the GUI. i try to get that data in the queue function so that i can call it in my filename and have the filename updated according to the mode of measurement. alternatively i also tried to add self.mode = mode but then i get NameError: name 'mode' is not defined. if the other way around mode = self.mode i don't get any error and the data file are correct but the filename is not update i.e in that function i get the default value of the parameter.
Reply


Messages In This Thread
RE: read a parameter after updating it in another class - by MKS2020 - Jul-23-2020, 03:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read module/class from list of strings? popular_dog 1 483 Oct-04-2023, 03:08 PM
Last Post: deanhystad
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 11,099 Dec-26-2022, 08:48 AM
Last Post: ibreeden
  How to read file inside class Mekala 11 12,538 May-02-2020, 11:36 AM
Last Post: snippsat
  Assigning data read from CSV to class faruk61 2 2,126 Apr-15-2020, 05:52 PM
Last Post: buran
  The derivate class dosn't behave like the base when i pass parameter to them drudox 4 3,187 Aug-05-2018, 06:42 PM
Last Post: drudox
  Global accessing of parameter to class Mahamutha 3 3,546 Aug-23-2017, 07:04 PM
Last Post: nilamo
  Running Class methods in a loop and updating variables. ujjwalrathod007 3 6,392 Oct-05-2016, 07:11 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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