« first day (2524 days earlier)      last day (832 days later) » 

user17921218
8:40 PM
-1
A: Retrieve a missing element from one class to that of another file: NameError: name 'element' is not defined

Nathan MüllerIs there anyone who reads who can help me with an answer? Thanks to anyone who reads?

 
user17921218
8:57 PM
In the main.py file I import a class from another external file called secondary. In the main.py file there is a combobox. The class of the secondary.py file does not receive the combobox data when it is running, so I get the error that the element has not been defined, but instead I have defined it in the main.py file.
 
user17921218
The error I get is NameError: the name 'city_departure' is not defined. I would not want to rewrite a long code from scratch in the secondary.py file class, because the combobox is located in the main file main.py. I would just like to get the definition when the combobox is run
 
1 message moved from Python
2 messages moved from Python
 
user17921218
0
Q: Retrieve a missing element from one class to that of another file: NameError: name 'element' is not defined

Nathan MüllerThe main file main.py calls a class from another file called secondary.py. The secondary.py file class has a cursor.execute that fails to retrieve its own ,[city_departure]) following a self.cursor.execute ('SELECT city, x, y FROM data WHERE info =?', Not having the combobox and the name defined ...

 
1 message moved from Python
 
9:32 PM
def pct(seq):
protein = {"TTT" : "F", "CTT" : "L", "ATT" : "I", "GTT" : "V",
"TTC" : "F", "CTC" : "L", "ATC" : "I", "GTC" : "V",
"TTA" : "L", "CTA" : "L", "ATA" : "I", "GTA" : "V",
"TAA" : "*", "CAA" : "Q", "AAA" : "K", "GAA" : "E",
"TAG" : "*", "CAG" : "Q", "AAG" : "K", "GAG" : "E",
"TGT" : "C", "CGT" : "R", "AGT" : "S", "GGT" : "G",
}
p = ''
for i in range(0, len(seq)-(3+len(seq)%3)+3, 3):
if ct[seq[i:i+3]] == "*":
print("Stop codon in sequence")
break
elif ct[seq[i:i+3]] not in ct[seq[i:i+3]]:
 
1 message moved from Python
 

« first day (2524 days earlier)      last day (832 days later) »