Re: [Tutor] Help with Multiple Inheritance in Classes

2017-02-08 Thread Peter Otten
Vusa Moyo wrote: > I have a suspicion my lecturer's question is flawed, so I'd like to pose > it to you guys to confirm my suspicions. > > Here goes.. > > I've gone and created a Class Cat1(cat): <-- inherited class, but cant > seem get the code right which allows the test code to run successful

Re: [Tutor] (no subject)

2017-02-08 Thread Alan Gauld via Tutor
On 07/02/17 21:09, တာန္ခတ္သန္ wrote: > RockPaperScissors game using dictionary. I have written my code and it > doesn't work at all. So what does it do? Crash your PC? Give an error? Run silently and stop? You need to be precise when telling us these things. If you get an error message send us th

Re: [Tutor] Help with Multiple Inheritance in Classes

2017-02-08 Thread Alan Gauld via Tutor
On 08/02/17 07:11, Vusa Moyo wrote: > I have a suspicion my lecturer's question is flawed, so I'd like to pose it > to you guys to confirm my suspicions. I think your interpretation of the question is flawed. See Peter's reply for why. However another point is > class Cat: > name = ""

[Tutor] Rock,Paper Scissors (was no subject)

2017-02-08 Thread Alan Gauld via Tutor
On 08/02/17 10:02, တာန္ခတ္သန္ wrote: > Thanks for your answers. Your explanation makes me understand what I > didn't understand and it discourages me to go on Python in other way > as I feel like this doesn't suit to me. :'( Don't be discouraged. Your central program was very nearly right and your

[Tutor] Trying to use tkinter in Pycharm EDU

2017-02-08 Thread Lisa Hasler Waters
Hello, We have been able to get the turtle module in PycharmEDU by ending our code with turtle.done() However, we cannot get the tkinter module to actually run in PycharmEDU. For example, when we input the following very simple code we get a line in the console that reads "Process finished with

Re: [Tutor] Trying to use tkinter in Pycharm EDU

2017-02-08 Thread Peter Otten
Lisa Hasler Waters wrote: > Hello, > > We have been able to get the turtle module in PycharmEDU by ending our > code with turtle.done() > > However, we cannot get the tkinter module to actually run in PycharmEDU. > For example, when we input the following very simple code we get a line in > the

[Tutor] Help on shoppingcart

2017-02-08 Thread Sasiliyu Adetunji
Hi, Pls help me on this shoppingcart assignment Create a class called ShoppingCart Create a constructor that takes no arguments and sets the total attribute to zero, and initializes an empty dict attribute named items. Create a method add_item that requires item_name, quantity and price argume

Re: [Tutor] Help on shoppingcart

2017-02-08 Thread Alan Gauld via Tutor
On 08/02/17 10:04, Sasiliyu Adetunji wrote: > Pls help me on this shoppingcart assignment Sure. You have a very specific set of tasks. Which bit are you stuck on? What have you tried? Show us your code and we can help get it working. > Create a class called ShoppingCart > Create a constructo

[Tutor] Explorer bar window(wxpython) combined to Tkinter

2017-02-08 Thread Pooja Bhalode
Hi, I have been working on creating an explorer bar in GUI. I found the code the explorer bar online using wx python. This creates a window shown below. [image: Inline image 1] But, I want to create this in the original GUI window that I am working in using Tkinter. However, when I tried importin

Re: [Tutor] Explorer bar window(wxpython) combined to Tkinter

2017-02-08 Thread Alan Gauld via Tutor
On 08/02/17 23:09, Pooja Bhalode wrote: > But, I want to create this in the original GUI window that I am working in > using Tkinter. However, when I tried importing it, I am not able to > understand how to deal with different roots, Unfortunately you cannot mix toolkits. You either use Tkinter o