Re: [Tutor] Matplotlib error with Python

2017-05-17 Thread Pooja Bhalode
Hi Alan, Yes, that was the issue, I had a tempfile.py created my me some time back. That was interfering with this one. Thanks a lot for your input. Hope you have a great day! Pooja On Wed, May 17, 2017 at 11:27 AM, Alan Gauld via Tutor wrote: > On 17/05/17 15:07, Pooja Bhalode wr

[Tutor] Matplotlib error with Python

2017-05-17 Thread Pooja Bhalode
*Hi, * *I have been working on a graphic user interface with matplotlib and suddenly(Earlier, I didnt get these errors, and when I opened the files now, I am) getting these errors: * */Users/poojabhalode/.bash_profile: line 1: .bashrc: No such file or directory* *[[ 2 -1 0]* * [-1 2 -1]* * [ 0 -

Re: [Tutor] All Entry Boxes taking the same value

2017-03-31 Thread Pooja Bhalode
r 31, 2017 at 6:28 AM, Alan Gauld via Tutor wrote: > On 30/03/17 21:35, Pooja Bhalode wrote: > > > *However, when I execute it, and type something in one entrybox, it shows > > in all the entry boxes using multi-cursor option. * > > I'm not sure whats going on and don;t

[Tutor] All Entry Boxes taking the same value

2017-03-31 Thread Pooja Bhalode
Hi, I am working on a GUI application where I have a multiple number of entry boxes and I created a loop for the label and entry boxes depending upon the number of times it needs to be shown. However, I tried assigning different values to each label and entry boxes in the for loop using lists, so t

[Tutor] Scrollbar

2017-03-27 Thread Pooja Bhalode
Hi, I am going wrong somewhere in the following code. here is given a simplified code of the work that I am trying to do. The scrollbar goes not work in the window. Can someone please let me know what the issue is. Thank you Code: from Tkinter import * root = Tk() root.geometry("500x400") scrollb

Re: [Tutor] Problems with matplotlib

2017-03-04 Thread Pooja Bhalode
I had a similar issue when I tried to download matplotlib in my python directory. I think what Peter suggested is correct, if you remove the new file it would work for you. I had the same issue with copy.py file. Hope that helps. On Sat, Mar 4, 2017 at 2:30 AM, Peter Otten <__pete...@web.de> wr

Re: [Tutor] Tables in Tkinter

2017-03-03 Thread Pooja Bhalode
via Tutor wrote: > On 03/03/17 16:07, Pooja Bhalode wrote: > > > The table that I am trying to get is a table with scrollable rows. I just > > want to display the data in the table in the Tkinter window. I do not > wish > > to make it interactive, since just want to di

Re: [Tutor] Radiobuttons (two options out of 4)

2017-03-03 Thread Pooja Bhalode
uttons which are not selected after two options are selected by the user. Can you please let me know how to design the function? Thank you Pooja On Fri, Mar 3, 2017 at 2:42 PM, Alan Gauld via Tutor wrote: > On 03/03/17 16:43, Pooja Bhalode wrote: > > > I am trying to create a GUI wi

[Tutor] Radiobuttons (two options out of 4)

2017-03-03 Thread Pooja Bhalode
Hi, I am trying to create a GUI with four options out of which the user is supposed to select two. But once the user selected two out of those four options, the others need to get greyed out at that instant. I tried the following thing: *Label(lom, text = "Choose two options from:").grid(row = 9

[Tutor] Tables in Tkinter

2017-03-03 Thread Pooja Bhalode
Hi, I am trying to use tkintertable in Python 2.7 to create a table in GUI using Tkinter. The table that I am trying to get is a table with scrollable rows. I just want to display the data in the table in the Tkinter window. I do not wish to make it interactive, since just want to display the dat

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: > > > whe

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 Alan, > > Sorry

Re: [Tutor] Tables in Tkinter

2017-03-02 Thread Pooja Bhalode
ws and columns. There would be one main column, which would be subdivided into three and then the three columns subdivided into more columns. Please let me know. Thank you Pooja On Wed, Mar 1, 2017 at 8:27 PM, Alan Gauld via Tutor wrote: > On 01/03/17 23:40, Pooja Bhalode wrote: > > >

[Tutor] Tables in Tkinter

2017-03-01 Thread Pooja Bhalode
Hi, I am trying to create normal tables in Tkinter. Can someone please guide me as to what functions I can use, I looked into tkintertable, but that does not seem to work for me. I tried installing it but it gave me a bunch of errors while installation and does not work. Is there any other simple

[Tutor] Checkbuttons Variables PY_VAR

2017-02-27 Thread Pooja Bhalode
Hi, The following code creates a list of checkboxes (each associated with different variables) for the user to select from, after having selected the ones that user wants, I am trying to add the selected variables to another list so that the selected variables can be accessed later in the code. Ho

Re: [Tutor] Multiple muti-selection dropdown options

2017-02-24 Thread Pooja Bhalode
On Thu, Feb 23, 2017 at 10:37 PM, Pooja Bhalode wrote: > > -- Forwarded message -- > From: Alan Gauld via Tutor > Date: Thu, Feb 23, 2017 at 8:51 PM > Subject: Re: [Tutor] Multiple muti-selection dropdown options > To: tutor@python.org > > > On 23/02/17

[Tutor] Multiple muti-selection dropdown options

2017-02-23 Thread Pooja Bhalode
Hi, I am working on GUI where I have two dropdown menus in a Toplevel of the main root. Here, both the dropdown menus have mutiple selection option and thus, the selections can be taken as an input from the user and printed out in the code. The window shows as below: [image: Inline image 1] Where

Re: [Tutor] Matplotlib in Tkinter

2017-02-20 Thread Pooja Bhalode
se tell me what I am doing wrong here? I would really appreciate it. I have also added the image as to how the two plots look like. [image: Inline image 1] Thankyou On Sun, Feb 19, 2017 at 2:36 PM, Pooja Bhalode wrote: > Hi, > > I am trying to create a graph in Tkinter window.

[Tutor] Matplotlib in Tkinter

2017-02-19 Thread Pooja Bhalode
Hi, I am trying to create a graph in Tkinter window. And following is a snipet of the code. Code: simroot = Toplevel(root) simroot.title("Simulation of experiments") Label(simroot, text = "Displaying concentration profiles with respect to time:").pack(side = TOP) Label(simroot, text = "Select

[Tutor] Creating tables in Tkinter

2017-02-19 Thread Pooja Bhalode
Hi, I am trying to create a simple table. But I was wondering how do I get the title of the table to span over multiple columns in the first row. Code: from Tkinter import * root = Tk() root.geometry("700x500") Label(root, text = "Table 1").grid(row = 0, column = 0, sticky = W) Label for i in ra

Re: [Tutor] Problems with matplotlib

2017-02-19 Thread Pooja Bhalode
Hi Peter, Thank you for that advice, that worked after I deleted the copy.py that I had created. Hope you are having a great weekend. Thanks Pooja On Sat, Feb 18, 2017 at 7:32 PM, Peter Otten <__pete...@web.de> wrote: > Pooja Bhalode wrote: > > > Hi, > > > >

[Tutor] Problems with matplotlib

2017-02-18 Thread Pooja Bhalode
Hi, I am trying to create a simple normal plot. But I am getting some errors which I am not able to understand. Would be a great help if someone can guide me to what I am doing wrong. Thankyou so much. Here is the code: # import matplotlib.pyplot as plt from matplotlib import pyplot as plt (Here

Re: [Tutor] Select and deselect for multiple checkboxes in Tkinter

2017-02-18 Thread Pooja Bhalode
Hi Alan, Thank you for your input. That was an easy fix to it. Thanks a lot. Pooja On Fri, Feb 17, 2017 at 8:23 PM, Alan Gauld via Tutor wrote: > On 17/02/17 18:31, Pooja Bhalode wrote: > > > I am writing to create two buttons, for selecting and de-selecting > multiple > &

[Tutor] Select and deselect for multiple checkboxes in Tkinter

2017-02-17 Thread Pooja Bhalode
Hi, I am writing to create two buttons, for selecting and de-selecting multiple checkboxes that I have created previously. These checkboxes have different variables that they are associated with for their values and thus cannot create a loop for the same. Is there any way that I could create the

Re: [Tutor] Accessing an entry value input by the user

2017-02-12 Thread Pooja Bhalode
alue associated with each entry boxes in the created list. Can you please let me know where I am going wrong? Thank you Alan. Pooja On Sat, Feb 11, 2017 at 8:03 PM, Alan Gauld via Tutor wrote: > On 11/02/17 18:59, Pooja Bhalode wrote: > > Hi Alan, > > > > I had done what yo

Re: [Tutor] Accessing an entry value input by the user

2017-02-11 Thread Pooja Bhalode
(frame1, text = "Click", command = Print).grid(row = 2, column = 2, sticky = W) Label(frame1, text="\t Temperature").grid(row=8, column=0,sticky=W) templowerentry = Entry(frame1, text="0.0") templowerentry.grid(row= 8, column = 1, sticky = W) tempupperentry = Entry(frame1)

[Tutor] Accessing an entry value input by the user

2017-02-11 Thread Pooja Bhalode
Hi, I am trying to create a label and an entry widget. I am not able to understand as to how to access the value input by the user in the entry widget. Label(frame1, text = "Number of species:").grid(row=0, column = 1, sticky=W) entrynumberspecies = Entry(frame1) entrynumberspecies.grid(row=0, co

Re: [Tutor] CheckButtons reset to default values

2017-02-10 Thread Pooja Bhalode
t;Part One", command=DesignPoint) butt1.pack(side=LEFT, padx=1) menusec.pack(side=TOP, fill=X) root.mainloop() It still doesn't work for me for the reason I am not able to figure out. Please let me know. Thank you once again in advance. Pooja On Fri, Feb 10, 2017 at 4:48 AM, Pet

[Tutor] CheckButtons reset to default values

2017-02-10 Thread Pooja Bhalode
Hi, I have a bunch of checkbuttons in my code and a default settings button which restores the original setting in the checkbuttons. The code is given below: var1 = IntVar() var2 = IntVar() var3 = IntVar() var4 = IntVar() Checkbutton(frame1, text = "Vertices", variable=var1,

[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] Tkinter Calendar to receive user entry.

2017-02-07 Thread Pooja Bhalode
. Yes, it works for me as well now. Thanks a lot for your help there. Yours truly, Pooja On Tue, Feb 7, 2017 at 5:18 AM, Peter Otten <__pete...@web.de> wrote: > Alan Gauld via Tutor wrote: > > > On 07/02/17 00:24, Pooja Bhalode wrote: > > > >> I am trying to create

Re: [Tutor] Multiple tabs using tkinter

2017-02-07 Thread Pooja Bhalode
, Feb 6, 2017 at 10:31 PM, Zachary Ware wrote: > On Mon, Feb 6, 2017 at 7:31 PM, Alan Gauld via Tutor > wrote: > > On 06/02/17 16:40, Pooja Bhalode wrote: > > > >> I was wondering if someone could help me regarding multiple tabs in > >> tkinter. > >

[Tutor] Tkinter Calendar to receive user entry.

2017-02-07 Thread Pooja Bhalode
Hi, I am trying to create a calendar using tkinter GUI such that when the user opens the GUI, it would show a drop down menu similar to the one seen on flight websites for booking and then the user can select any specific date. I need to make this such that the user can navigate between years and

[Tutor] Multiple tabs using tkinter

2017-02-06 Thread Pooja Bhalode
Hi, I was wondering if someone could help me regarding multiple tabs in tkinter. I am working on a GUI which would have tabs similar to the ones we see in excel, wherein we can navigate from one tab to the other and back. Could you please direct me towards some information regarding how I should p

Re: [Tutor] Copy/Paste in Tkinter

2017-02-04 Thread Pooja Bhalode
or show me towards some simple examples of the same, so that it would be easier to understand. I was learning from youtube videos about this. It would be a huge help. Thank you so much Pooja On Sat, Feb 4, 2017 at 5:32 AM, Alan Gauld via Tutor wrote: > On 04/02/17 00:24, Pooja Bhalode wr

[Tutor] Tkinter Copy/Paste/Cut functionalities

2017-02-04 Thread Pooja Bhalode
Hi, I am new to tkinter and looking for some help with select/copy/paste functionalities. I wish to keep these tabs in the Edit menu and as well as be able to do it using the shortcut keys. Here, I am trying to create a GUI and needed some help with that. I came across some snippets of the code to

[Tutor] Copy/Paste in Tkinter

2017-02-04 Thread Pooja Bhalode
Hi, I am trying to write a simple Tkinter code in Python in order to demonstrate select/copy/paste/cut functionalities using keyboard keys and menu options. I tried looking up online, but I am finding examples of these in which they create an event and then it is used: eg.: import Tkinter def mak

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-11 Thread Pooja Bhalode
Hi Steven, Thank you so much for your help. It worked. That was the mistake I had. I had (i,j) instead of [i,j] Thanks again Pooja On Sat, Sep 10, 2016 at 12:23 PM, Pooja Bhalode wrote: > Hi everyone, > > I am sorry about the confusion earlier, > I am trying to run Pyomo en

Re: [Tutor] Error: 'IndexedVar' object is not callable

2016-09-10 Thread Pooja Bhalode
Hi everyone, I am sorry about the confusion earlier, I am trying to run Pyomo environment in Python on sublime text editor. Python version of 2.7.11. I am running the code in sublime itself. The code is somewhat long, around 200 lines. I can add snippets of it though. Code: m.z = ContinuousSet(

[Tutor] Error: 'IndexedVar' object is not callable

2016-09-09 Thread Pooja Bhalode
Hi everyone, I was getting this error which read ' 'IndexedVar' object is not callable ' for a variable type. The variable is defined as a class variable and has dimensions m.C(i,j) in z and t axis. The program isnt able to take in any of the equations that I am giving it to because of this erro

Re: [Tutor] Lists+sorting

2016-01-04 Thread Pooja Bhalode
uld > wrote: > > > On 04/01/16 16:56, Pooja Bhalode wrote: > > > Hi, > > > I wanted to check if I can write the following program in this manner > as > > > well. > > > > > > > Can you resend in plain text please? > > Your post lost

[Tutor] lists+sort

2016-01-04 Thread Pooja Bhalode
Hi, I wanted to check if this program can be used to merge the lists together and sort them. This seems to work, but i wanted to check if there are drawbacks in writing it in this manner. My solution: def linear_merge(list1, list2): for num in list2: list1.append(num) list1

[Tutor] Lists+sorting

2016-01-04 Thread Pooja Bhalode
Hi, I wanted to check if I can write the following program in this manner as well. The problem is to merge the lists together and sort them.The solution they have given is: def linear_merge(list1, list2): result = [] while len(list1) and len(list2): if list1[0] < list2[0]: result.append(list