Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Call a variable
Post: RE: Call a variable

Should I add object to my classes?
jmf08 General Coding Help 16 5,930 Jan-18-2019, 05:50 AM
    Thread: Call a variable
Post: RE: Call a variable

It worked! in this code but im getting a '<module2.cmod2 object at 0x0000000002918208>' whenever i try to show it. from module2 import cmod2 plannerlist = [] def meth31(): planner = [] ...
jmf08 General Coding Help 16 5,930 Jan-17-2019, 04:54 PM
    Thread: Call a variable
Post: RE: Call a variable

def meth22(self): self.add = input('What plan do you want to add?\n') return self.addfrom module2 import cmod2 plannerlist = [] def meth31(): planner = [] # myobject4 = cm...
jmf08 General Coding Help 16 5,930 Jan-17-2019, 04:39 PM
    Thread: Call a variable
Post: RE: Call a variable

(Jan-17-2019, 03:11 PM)ichabod801 Wrote: The first time you want the value, you use cmod2.get_add(). The second time you want the value, you use cmod2.add. myobject4 = cmod2.add() Error:AttributeE...
jmf08 General Coding Help 16 5,930 Jan-17-2019, 04:16 PM
    Thread: Call a variable
Post: RE: Call a variable

It repeats the method, it should not. It calls the whole method instead of just the variable 'add'. So when I run it, its getting the user input twice. It should take only 1 input.
jmf08 General Coding Help 16 5,930 Jan-17-2019, 02:12 PM
    Thread: Remove object
Post: RE: Remove object

I try to put 'str' on removeplan and still nothing happens, what I am missing?
jmf08 General Coding Help 5 3,088 Jan-17-2019, 01:25 PM
    Thread: Call a variable
Post: RE: Call a variable

Sorry, I just want to use the 'add' variable to my meth31.
jmf08 General Coding Help 16 5,930 Jan-17-2019, 01:10 PM
    Thread: Call a variable
Post: RE: Call a variable

'add' from module2 ---> module3
jmf08 General Coding Help 16 5,930 Jan-16-2019, 12:38 PM
    Thread: Remove object
Post: RE: Remove object

It shows all the object in the list but when I try to remove some of it, nothing happen.
jmf08 General Coding Help 5 3,088 Jan-16-2019, 04:48 AM
    Thread: Call a variable
Post: RE: Call a variable

What if the 'add' variable only I want to call to module3?
jmf08 General Coding Help 16 5,930 Jan-16-2019, 04:41 AM
    Thread: Call a variable
Post: Call a variable

Instead of calling a variable , the whole method is being called. Is there something I need to change to call only the variable 'add'? I just want to use the variable 'add' to module3. tia module2....
jmf08 General Coding Help 16 5,930 Jan-16-2019, 03:48 AM
    Thread: Remove object
Post: Remove object

Can any1 help me with my code? I cant remove object inside of my list. And how to update them. import pickle from module2 import cmod2 plannerlist = [] class cmod3: def meth31(): planner...
jmf08 General Coding Help 5 3,088 Jan-16-2019, 03:40 AM

User Panel Messages

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