I love to learn ....

Jan
29
awarded Popular Question
Jan
14
awarded Popular Question
Dec
28
awarded Notable Question
Dec
22
accepted How to use Python to read a range of lines in a file
Dec
22
comment How to use Python to read a range of lines in a file
@gkusner the only thing I need to figure out now is that it appears to disregard the nested if statement (if '8041' ...). It prints all orders, regardless the '8041' condition. But I can live with that.
Dec
22
comment How to use Python to read a range of lines in a file
@gkusner works like a charm, Not sure why I got stuck, but I understand your process (very straight forward)
Dec
22
comment How to use Python to read a range of lines in a file
Here is what a returned Jay, still trying to troubleshoot: -> 004 60981 Traceback (most recent call last): File "F:\Python\WinPython-32bit-2.7.10.2\python-2.7.10\getOrders_RXF.py", line 50, in <module> line = rfile.readline() ValueError: Mixing iteration and read methods would lose data
Dec
22
comment How to use Python to read a range of lines in a file
@gkusner for some reason it is only printing line 819. Also, I have this line above the code you posted: for rxf in file filelist:
Dec
22
comment How to use Python to read a range of lines in a file
Not sequential, but incrementally larger up until 819.
Dec
22
comment How to use Python to read a range of lines in a file
@aabilio from the sample text file, if line 004 == 'a certain number', get all lines up to line 819. Then, if the next 004 == 'a certain number' get subsequent lines as well, and so fourth.
Dec
22
revised How to use Python to read a range of lines in a file
added 1 character in body
Dec
22
asked How to use Python to read a range of lines in a file
Dec
22
awarded Yearling
Dec
22
awarded Good Question
Dec
16
comment Python restkit module connection returns error
@birryee I typed it in, and I'm sure that was the error. The line above that is SimplePool = ConnectionPool
Dec
15
asked Python restkit module connection returns error
Dec
6
comment How can I change button methods from pack to grid in a class using Tkinter
@BryanOakley I have edited the code to include loginScreen class
Dec
6
revised How can I change button methods from pack to grid in a class using Tkinter
added 938 characters in body
Dec
6
comment How can I change button methods from pack to grid in a class using Tkinter
@BryanOakley I thought this was obvious, but I will say it now: of course the entire code is not listed. That is why there are ellipses in the code. signifying there is more code. However, that code is not relative to the problem, hence the ellipses.
Dec
6
comment How can I change button methods from pack to grid in a class using Tkinter
@BryanOakley it does in fact generate the error! Erroneous indentation can, perhaps, be chalked up to copy/paste. I'm following this code example from an online source, just trying to re-position the buttons and labels. I will attempt what you recommended.
1 2 3 4 5