Re: [Tutor] Asking about pi_switch

2017-03-02 Thread Alex Kleider
On 02/03/17 22:20, Quang nguyen wrote: Right now, I need to use pi_switch in order to send data through RF system by Pi2. Until now, I installed everything it need from an article on the internet. Those things are python-dev, libboost-python-dev, python-pip, and I used pip to install

Re: [Tutor] Asking about pi_switch

2017-03-02 Thread Alex Kleider
On 2017-03-02 14:20, Quang nguyen wrote: Hi, Right now, I need to use pi_switch in order to send data through RF system by Pi2. Until now, I installed everything it need from an article on the internet. Those things are python-dev, libboost-python-dev, python-pip, and I used pip to install

Re: [Tutor] Asking about pi_switch

2017-03-02 Thread Alan Gauld via Tutor
On 02/03/17 22:20, Quang nguyen wrote: > Right now, I need to use pi_switch in order to send data through RF system > by Pi2. Until now, I installed everything it need from an article on the > internet. Those things are python-dev, libboost-python-dev, python-pip, and > I used pip to install

[Tutor] Asking about pi_switch

2017-03-02 Thread Quang nguyen
Hi, Right now, I need to use pi_switch in order to send data through RF system by Pi2. Until now, I installed everything it need from an article on the internet. Those things are python-dev, libboost-python-dev, python-pip, and I used pip to install pi_switch. I think it just compatible with

Re: [Tutor] Tables in Tkinter

2017-03-02 Thread Pooja Bhalode
Hi Alan, Thank you for that advice. Sorry, I should have caught that. Also, i can look into the documentation of tkintertable for creating the table. Thank you Pooja On Thu, Mar 2, 2017 at 10:12 AM Alan Gauld via Tutor wrote: > On 02/03/17 14:25, Pooja Bhalode wrote: > > >

Re: [Tutor] looping - beginner question

2017-03-02 Thread leam hall
On Thu, Mar 2, 2017 at 8:42 AM, Rafael Knuth wrote: > I wrote a program that is supposed to take orders from customers in a bar. > If the desired drink is available, the customer will be served. If > not, he will be informed that the drink is not available. This is what >

Re: [Tutor] looping - beginner question

2017-03-02 Thread Mats Wichmann
On 03/02/2017 08:06 AM, Alan Gauld via Tutor wrote: > On 02/03/17 13:42, Rafael Knuth wrote: > >> bar = ["beer", "coke", "wine"] >> >> customer_order = input("What would you like to drink, dear guest? ") >> >> for drink in bar: >> if customer_order != drink: >> print ("Sorry, we don't

Re: [Tutor] Tables in Tkinter

2017-03-02 Thread Alan Gauld via Tutor
On 02/03/17 14:25, Pooja Bhalode wrote: > when I tried to install tkintertable using pip: i got the following errors: > > OSError: [Errno 13] Permission denied: > '/Library/Python/2.7/site-packages/Pmw' Based on this I'm guessing you need to run pip with sudo? -- Alan G Author of the Learn

Re: [Tutor] looping - beginner question

2017-03-02 Thread Alan Gauld via Tutor
On 02/03/17 13:42, Rafael Knuth wrote: > bar = ["beer", "coke", "wine"] > > customer_order = input("What would you like to drink, dear guest? ") > > for drink in bar: > if customer_order != drink: > print ("Sorry, we don't serve %s." % customer_order) > else: > print

Re: [Tutor] Spyder IDE Anaconda3: Problem with Plt.savefig

2017-03-02 Thread Stephen P. Molnar
On 03/01/2017 08:32 PM, Alan Gauld via Tutor wrote: On 01/03/17 20:20, Stephen P. Molnar wrote: I have written a Python3 program to plot and save UV/VIS spectra from the results of an Orca quantum mechanical calculation. Caveat: This forum is for help on the core Python language and its

Re: [Tutor] feedback on simple python code

2017-03-02 Thread Ryan Smith
On 2/28/17, 3:32 AM, "Tutor on behalf of Peter Otten" wrote: >Ryan Smith wrote: > >> Hi all, >> >> New python student here. I have been using O¹reilly¹s "Python Beyond the >> Basics: Object Oriented Programming video

Re: [Tutor] Tables in Tkinter

2017-03-02 Thread Pooja Bhalode
I am currently using python 2.7 in mac system. I think tkinter would be a problem since I use Tkinter for Python 2.7. But I do not know the corresponding part of tkintertable for python 2.7 Thank you Pooja On Thu, Mar 2, 2017 at 9:25 AM, Pooja Bhalode wrote: > Hi

[Tutor] looping - beginner question

2017-03-02 Thread Rafael Knuth
I wrote a program that is supposed to take orders from customers in a bar. If the desired drink is available, the customer will be served. If not, he will be informed that the drink is not available. This is what I wrote: bar = ["beer", "coke", "wine"] customer_order = input("What would you like

Re: [Tutor] Tables in Tkinter

2017-03-02 Thread Pooja Bhalode
Hi Alan, Sorry for being ambiguous earlier. I can make it more clear in this email. I am planning on creating a scrollable table (grid of values) with title labels for each column and rows present in it and a title for the overall table. I saw it online that to create a table in tkinter, I can