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

(Apr-17-2020, 08:37 AM)deanhystad Wrote: The __init__ method is called when you create an instance of a class. For DisplayDict this happens in MyApp.__init__ frame = DisplayDict(container, self) se...
MC2020 GUI 2 2,714 Apr-17-2020, 11:31 AM
    Thread: Updating a variable within a class
Post: Updating a variable within a class

Hello, I'm really struggling with this concept. When I initialize my code, on the 'DisplayDict' Page, mydict is set to 'dict1'. When I go to the 'AddDict' page, I add 'dict2' and 'dict3' to mydict. N...
MC2020 GUI 2 2,714 Apr-17-2020, 01:20 AM
    Thread: Combining Dictionaries w/o overwriting
Post: RE: Combining Dictionaries w/o overwriting

Sorry I meant to type : instead of the = sign. So I want to dict3 to be the same as the targetdict. So effectively print(dict3) would be the same result as print(targetdict) dict1 = {"North America"...
MC2020 General Coding Help 3 1,951 Apr-11-2020, 10:58 PM
    Thread: Combining Dictionaries w/o overwriting
Post: Combining Dictionaries w/o overwriting

Hello, I am trying to combine dictionaries into a single dictionary while retaining previous values. I have provided an example code below. Ideally, I am trying to accomplish the following: dict3 = ...
MC2020 General Coding Help 3 1,951 Apr-11-2020, 10:28 PM
    Thread: Print Values from a Sequence of Entries / ComboBoxes
Post: RE: Print Values from a Sequence of Entries / Comb...

(Mar-28-2020, 08:14 PM)deanhystad Wrote: When you have multiple things you need to use a container of some sort. Python uses dictionaries to hold a collection of things that can be referenced by a ...
MC2020 GUI 4 2,914 Mar-28-2020, 10:05 PM
    Thread: Print Values from a Sequence of Entries / ComboBoxes
Post: RE: Print Values from a Sequence of Entries / Comb...

Thank you very much for the response. I am new to learning this and it can be difficult to find exactly what I am looking for online. Your reply is incredibly helpful. I am trying to make a simpler p...
MC2020 GUI 4 2,914 Mar-28-2020, 04:34 PM
    Thread: Print Values from a Sequence of Entries / ComboBoxes
Post: Print Values from a Sequence of Entries / ComboBox...

Hi - I want to build a program to add a basketball lineup. Ideally I want the output to be (as an example): Center, John Point Guard, Jack Shooting Guard, James This would depend on how many values ...
MC2020 GUI 4 2,914 Mar-26-2020, 01:07 AM
    Thread: Referencing Combo Box
Post: RE: Referencing Combo Box

(Feb-12-2020, 03:05 AM)Larz60+ Wrote: Quote:Fixed the error message in OP. Is that the complete unaltered error traceback? I was expecting more This was the entire message Error:Exception in Tkinte...
MC2020 GUI 6 3,061 Feb-12-2020, 03:10 AM
    Thread: Referencing Combo Box
Post: RE: Referencing Combo Box

(Feb-12-2020, 02:54 AM)Larz60+ Wrote: cost calculation is commented out on line 40 Whoops forgot to uncomment when I was testing. Fixed the error message in OP.
MC2020 GUI 6 3,061 Feb-12-2020, 03:02 AM
    Thread: Referencing Combo Box
Post: Referencing Combo Box

Hi - I am trying to write a Python code to basically do a sumproduct function based on the item selected and the quantity of that item selected. My code is below. I am having trouble referencing the ...
MC2020 GUI 6 3,061 Feb-11-2020, 11:43 PM
    Thread: tkinter checkbutton if checked
Post: tkinter checkbutton if checked

Hi - I am learning python and need help with this code. I have researched online, but haven't been able to find an answer for what I'm looking for. My code is below. The 'open' function is what I nee...
MC2020 GUI 2 6,130 Jan-20-2020, 05:45 PM
    Thread: Variable ComboBox Named Values
Post: RE: Variable ComboBox Named Values

Thank you!
MC2020 General Coding Help 2 2,221 Jan-10-2020, 02:02 PM
    Thread: Variable ComboBox Named Values
Post: Variable ComboBox Named Values

Hello All I feel like I'm missing something dumb here. I have code below to pick from a drop down list (combobox). There is some naming problem with my code. My expectation would be the combobox opti...
MC2020 General Coding Help 2 2,221 Jan-09-2020, 11:20 PM
    Thread: Assigning a Variable Help
Post: RE: Assigning a Variable Help

Thanks so much!!
MC2020 General Coding Help 5 3,033 Jan-06-2020, 10:54 PM
    Thread: Assigning a Variable Help
Post: RE: Assigning a Variable Help

Thanks that helped point me in the right direction. temp = {'MonthOfYear' : {"Jan" , "Feb" , "Mar"} , 'Temperature' : {"25" , "35" , "45"} , 'Days' : {"31" , "28" , "31"} , 'Precipitation' : {"3" , "...
MC2020 General Coding Help 5 3,033 Jan-05-2020, 09:23 PM
    Thread: Assigning a Variable Help
Post: Assigning a Variable Help

Hi - I'm new to Python so this is probably a dumb question Lets say I have variables months of the year that looks like this month[temperature,days in month, precipitation] Jan[25,31,3] Apr[45,30,4]...
MC2020 General Coding Help 5 3,033 Jan-05-2020, 06:53 PM

User Panel Messages

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