[Tutor] Need help

2016-09-28 Thread niraj pandey
Hi, I am new in python. Could you guys please help me to short this code ? Want to write this iteration (Yellow one) using loop. r = 0 L1 = Label(bg = 'orange', text="Flat_No", relief=RIDGE,width=30) L1.grid(row=0,column=0) E1 = Entry(relief=SUNKEN,width=30) E1.grid(row=0,column=1) L2 = Label(bg

Re: [Tutor] Need help

2016-09-28 Thread niraj pandey
get(), E2.get(), E3.get(), E4.get()) Thanks Niraj On Wed, Sep 28, 2016 at 10:52 AM, niraj pandey wrote: > Hi, > > I am new in python. Could you guys please help me to short this code ? > > Want to write this iteration (Yellow one) using loop. > > r = 0 > L1 = Label(bg =

Re: [Tutor] Need help

2016-09-28 Thread niraj pandey
Thanks Peter for the help. Best Regards Niraj On Wed, Sep 28, 2016 at 2:47 PM, Peter Otten <__pete...@web.de> wrote: > niraj pandey wrote: > > > Found the solution for this. > > You can further simplifiy it with enumerate() > > entry_option = ['Fla

Re: [Tutor] Need help

2016-09-28 Thread niraj pandey
Ignore this I have done it. Thanks Niraj On Wed, Sep 28, 2016 at 12:30 PM, niraj pandey wrote: > Found the solution for this . > > entry_option = ['Flat_No','Mains Unit','DG Unit','Month'] > > r = 0 > entry = {} > la

[Tutor] Need help

2016-10-03 Thread niraj pandey
Hi , I am new in python. Could you guys please help me here. I want to add every lebels value here (ie fetch from DB and display in front of every lebel or I had store every lable value in variable and display here). [image: Inline image 1] So that table looks like as follow [image: Inline im

Re: [Tutor] Need help

2016-10-03 Thread niraj pandey
Hello Alan , I am using python 2.7.10 and using RHEL6 Thanks On Mon, Oct 3, 2016 at 8:53 PM, Alan Gauld via Tutor wrote: > On 03/10/16 10:54, niraj pandey wrote: > > > I want to add every lebels value here (ie fetch from DB and display in > > front of every lebel or I had

Re: [Tutor] Need help

2016-10-04 Thread niraj pandey
10:02 PM, niraj pandey wrote: > Hello Alan , > > I am using python 2.7.10 and using RHEL6 > > Thanks > > > On Mon, Oct 3, 2016 at 8:53 PM, Alan Gauld via Tutor > wrote: > >> On 03/10/16 10:54, niraj pandey wrote: >> >> > I want to add every

Re: [Tutor] Need help

2016-10-04 Thread niraj pandey
Ok I got it from the solution you provided on your previous mail. Thanks again Thanks Niraj On Tue, Oct 4, 2016 at 12:05 PM, niraj pandey wrote: > Attaching two snapshots here. > > In first snapshot (1.png) I have the label windows without the values and > in second window (2.png)

Re: [Tutor] Need help

2016-10-12 Thread niraj pandey
Hi , I need one more help related to printer. Can you pls guide how to print this screen (Attached here) content in printer ? Thanks Niraj On Tue, Oct 4, 2016 at 12:21 PM, niraj pandey wrote: > Ok I got it from the solution you provided on your previous mail. > > Thanks again &

Re: [Tutor] Python 3.5.2 Installaton Question

2016-10-21 Thread niraj pandey
Hi , In Linux I have multiple version of python on separate location and so far I do not see any issue . So I think you can also install multiple version of python on your window system as well. You may just need to provide separate installation directory path to install it on another location wit

Re: [Tutor] Alternative to for/while loop

2016-10-25 Thread niraj pandey
Try this. my_string = '0,1,2,3' my_lst=my_string.split(",") leng = len(my_lst) b=sum(my_lst) avg=float(b/leng) print avg On Tue, Oct 25, 2016 at 7:08 AM, Bryon Adams wrote: > Hello, > I'm very new to python so please forgive what may be a beginner > question. The book I'm working through