On Wed, Nov 2, 2011 at 7:26 AM, wrote:
> Shouldn't this be treated as a bug then? As a user I should be allowed to
> uninstall the software I want to.
> Or you uninstalled other things by mistake?
I don't think this is a bug. Python 2.7 is required software for both
Gnome and Unity. Without it n
On 2011/11/02 08:26 AM, spa...@gmail.com wrote:
Shouldn't this be treated as a bug then? As a user I should be allowed
to uninstall the software I want to.
Or you uninstalled other things by mistake?
On Wed, Nov 2, 2011 at 6:18 AM, Joel Montes de Oca
mailto:joelmonte...@gmail.com>> wrote:
Shouldn't this be treated as a bug then? As a user I should be allowed to
uninstall the software I want to.
Or you uninstalled other things by mistake?
On Wed, Nov 2, 2011 at 6:18 AM, Joel Montes de Oca
wrote:
> On Tue 01 Nov 2011 08:56:41 PM EDT, Max gmail wrote:
>
>> Heh, yeah. It's usually a
Thanks everyone for all of the help. I almost have this working.
Everything is written in a class. I think I have that right, but that remains
to be seen. :-)
I can create the login window and get all of the controls on it. My function
gets called to validate the information in the fields w
Heh, yeah. It's usually a bad idea to do stuff like that (I know a guy
(Windows) who deleted his OS of his system).
On Nov 1, 2011, at 7:40 PM, Joel Montes de Oca wrote:
> I just discovered that it is a bad idea to complete uninstall Python 2.7 on
> Ubuntu 11.10. If you do, expect a lot of thi
On 02/11/11 00:16, Justin Straube wrote:
Have you looked into using a Frame to hold you input fields, and then
using .destroy() to remove it upon successful login?
This is a valid approach for some scenarios but its not the norm for
login dialogs. They usually popup as fairly small standalone
On 01/11/11 21:15, Joel Montes de Oca wrote:
Question, once the code is compiled to a binary, can someone inject code
to cause the hidden window to show, skipping the login altogether?
In general you don't compile Python to a binary, although tools exist
that give a good approximation to that.
On 01/11/11 21:28, Chris Hare wrote:
Good feedback Alan, thanks.
I wasn't using the root window to hold the login form, although I
suppose I could. I guess where I am stuck is the login to control
displaying the login window, and hiding it to display the actual
application window once the user
On Tue 01 Nov 2011 08:56:41 PM EDT, Max gmail wrote:
Heh, yeah. It's usually a bad idea to do stuff like that (I know a guy
(Windows) who deleted his OS of his system).
On Nov 1, 2011, at 7:40 PM, Joel Montes de Oca wrote:
I just discovered that it is a bad idea to complete uninstall Python
On 11/1/2011 3:28 PM, Chris Hare wrote:
Good feedback Alan, thanks.
I wasn't using the root window to hold the login form, although I
suppose I could. I guess where I am stuck is the login to control
displaying the login window, and hiding it to display the actual
application window once the us
I just discovered that it is a bad idea to complete uninstall Python 2.7
on Ubuntu 11.10. If you do, expect a lot of things not to work, mainly
your system. haha
I just reinstalled Python 2.7 and I hope things are not so bad now when
I reboot.
--
-Joel M.
___
On Nov 1, 2011 4:17 PM, "Joel Montes de Oca" wrote:
>
> On 11/01/2011 02:18 PM, Alan Gauld wrote:
>>
>> On 01/11/11 18:09, Alexander Etter wrote:
>>
>>> Hi, hopefully a more experience hacker can provide clarity, but how
>>> secure does this login need to be? I dont much about python in DRAM but
>
On Tue, Nov 1, 2011 at 10:47 PM, Narguess Dadfar
wrote:
> I want to prepare a script in python that updates the attributes of the
> crime incidents falling within the patrol zone. I have a point feature
> class of crime incidents and a polygon feature class of patrol zone.
>
> I used the getcount
Narguess Dadfar wrote:
[...]
But I ran to problem. Please let me know what I should change.
Would you like us to guess what problem you had?
My guess is... you got a SyntaxError, because you forgot to put a
closing bracket on the previous line.
Am I close?
--
Steven
On 01/11/11 20:24, Steve Willoughby wrote:
You think emacs is bad, though? Try TECO.
Thats why Mr Stallman wrote emacs! :-)
I once used Teco for a month, just for a dare.
The best thing about it was taking a test file and typing your name into
it, and seeing if you could guess what the final
On 01-Nov-11 13:24, Steve Willoughby wrote:
On 01-Nov-11 13:19, Alexander Etter wrote:
I like than .png image! It does appear vi biased though!
Not quite, notice the initial steep climb. :) Yes, it's tongue-in-cheek,
Oops, my mistake. If the y axis is productivity and x is time using the
to
Good feedback Alan, thanks.
I wasn't using the root window to hold the login form, although I suppose I
could. I guess where I am stuck is the login to control displaying the login
window, and hiding it to display the actual application window once the user
has authenticated.
Chris Hare
ch
I want to prepare a script in python that updates the attributes of the
crime incidents falling within the patrol zone. I have a point feature
class of crime incidents and a polygon feature class of patrol zone.
I used the getcount. method to take a count of the incidents in the current
layer as
On 11/01/2011 02:18 PM, Alan Gauld wrote:
On 01/11/11 18:09, Alexander Etter wrote:
Hi, hopefully a more experience hacker can provide clarity, but how
secure does this login need to be? I dont much about python in DRAM but
your login sounds like it could be easily hacked.
That depends entire
On 01/11/11 18:57, Chris Hare wrote:
Here is a code snippet I have pulled out of the project. It is as bare
bones as I can make it to get the point across.
I think you could have dropped a lot more to be honst - like all the
menu code for a start...
1. I would really like the window to be c
On Tue, Nov 1, 2011 at 3:24 PM, Steve Willoughby wrote:
> On 01-Nov-11 13:19, Alexander Etter wrote:
>
>> I like than .png image! It does appear vi biased though!
>>
>
> Not quite, notice the initial steep climb. :) Yes, it's tongue-in-cheek,
> but feels about right, once you master vi (or emac
On 01-Nov-11 13:19, Alexander Etter wrote:
I like than .png image! It does appear vi biased though!
Not quite, notice the initial steep climb. :) Yes, it's
tongue-in-cheek, but feels about right, once you master vi (or emacs) you're
able to be amazingly productive with complex operations in
On Nov 1, 2011, at 16:06, Wayne Werner wrote:
> On Tue, Nov 1, 2011 at 6:31 AM, Alexander Etter wrote:
> There is a learning curve.
>
> Yes, and for a graphical comparison of learning curves:
> http://jeetworks.org/files/images/emacs_learning_curves.png
>
> ;)
>
> One may find a learning c
On Tue, Nov 1, 2011 at 6:31 AM, Alexander Etter wrote:
> There is a learning curve.
Yes, and for a graphical comparison of learning curves:
http://jeetworks.org/files/images/emacs_learning_curves.png
;)
> One may find a learning curve with everything in existence, whereas I
> repudiate one di
On Tue, Nov 1, 2011 at 1:57 PM, Chris Hare wrote:
> Here is a code snippet I have pulled out of the project. It is as bare
> bones as I can make it to get the point across.
>
> the problems I am having:
>
> 1. I would really like the window to be centered in the user's screen,
> but setting the
Okay - that makes sense. The login window uses the show="*" for the password
field and is authenticated against a database where the passwords are
encrypted. I have this working in a text only environment, just struggling to
get it right for the GUI
Thanks
Chris Hare
ch...@labr.net
http://ww
Here is a code snippet I have pulled out of the project. It is as bare bones
as I can make it to get the point across.
the problems I am having:
1. I would really like the window to be centered in the user's screen, but
setting the geometry doesn't place it there. (that isn't included here)
* Alexander Etter [01 03:36]:
> Rinu, I use emacs. I use Python and C++. I'm also a university
> student. Last semester I learned python 2.7 using IDLE, and
> continued with IDLE while I searched for alternatives over the
> summer. I didn't find what I was looking for. Say, just a few
> week
On 01/11/11 18:09, Alexander Etter wrote:
Hi, hopefully a more experience hacker can provide clarity, but how
secure does this login need to be? I dont much about python in DRAM but
your login sounds like it could be easily hacked.
That depends entirely on how the user is authenticated.
(assum
On 01/11/11 09:46, Peter Otten wrote:
Alan Gauld wrote:
Good point, although you could test the first character only...
if choice[0].lower() not in ('prs'): # NB use a single string
What Steven says, plus you may run into an IndexError if choice is the empty
string. If you absolutely want
On 01/11/11 14:33, Dave Angel wrote:
Just use the sort() method of the list object. In particular, items()
returns an unordered list, so it's ready to be sorted.
for residues, numbers in new_dictionary.items().sort():
I don't think this would work since sort works in place. You would need
to
On Nov 1, 2011, at 12:47, Chris Hare wrote:
>
> I am working on a python Tk program which involves a login window and I am
> looking for some advice.
>
> Currently the code I have creates a window (Toplevel) where the login
> controls are and I am running that using a main loop for the window
On 01/11/11 16:47, Chris Hare wrote:
I am working on a python Tk program which involves a login window and I
am looking for some advice.
Currently the code I have creates a window (Toplevel) where the login
controls are and I am running that using a main loop for the window.
Don't do this, it
On 01/11/11 04:10, Chris Kavanagh wrote:
before. In other languages, ala C++, don't global variables have to be
declared at the 'top' of the code??
No, that's just common usage.
You can declare a variable anywhere in C/C++ provided it's before
it is used. But that can lead to hard to read code
I am also intrested in this topic.
Chris were you thinking of using the window.hide() method?
-Joel M
On Nov 1, 2011 1:21 PM, "Chris Hare" wrote:
>
> I am working on a python Tk program which involves a login window and I am
> looking for some advice.
>
> Currently the code I have creates a win
On 01-Nov-11 09:47, Chris Hare wrote:
Questions:
1. Is this the best way of doing this or is there a better way?
2. How do I exit the main loop when the user has authenticated?
Why stop the main loop and restart it? Typically you'd setup the app,
and start the main loop running for the durati
I am working on a python Tk program which involves a login window and I am
looking for some advice.
Currently the code I have creates a window (Toplevel) where the login controls
are and I am running that using a main loop for the window. The root window is
hidden. The objective is that when
Mayo Adams wrote:
When writing a simple for loop like so:
for x in f
where f is the name of a file object, how does Python "know" to interpret
the variable x as a line of text, rather than,say, an individual character
in the file? Does it automatically
treat text files as sequences of line
lina wrote:
>> sorted(new_dictionary.items())
>
> Thanks, it works, but there is still a minor question,
>
> can I sort based on the general numerical value?
>
> namely not:
> :
> :
> 83ILE 1
> 84ALA 2
> 8SER 0
> 9GLY 0
> :
> :
>
> rather 8 9 ...83 84,
>
> Thanks,
You need a custom key funct
Steve Willoughby wrote:
> On 01-Nov-11 08:34, Mayo Adams wrote:
>> When writing a simple for loop like so:
>>
>> for x in f
>>
>> where f is the name of a file object, how does Python "know" to interpret
>> the variable x as a line of text, rather than,say, an individual
>> character in the
On 11/01/2011 11:11 AM, lina wrote:
On Tue, Nov 1, 2011 at 10:33 PM, Dave Angel wrote:
On 11/01/2011 10:11 AM, lina wrote:
Hi,
The following code (luckily) partial achieved what I wanted, but I
still have few questions:
#!/usr/bin/python3
import os.path
INFILEEXT=".txt"
OUTFILEEXT=".new"
On 11/01/2011 11:11 AM, lina wrote:
On Tue, Nov 1, 2011 at 10:33 PM, Dave Angel wrote:
On 11/01/2011 10:11 AM, lina wrote:
Hi,
The following code (luckily) partial achieved what I wanted, but I
still have few questions:
#!/usr/bin/python3
import os.path
INFILEEXT=".txt"
OUTFILEEXT=".new"
On Tue, Nov 1, 2011 at 11:28 PM, Peter Otten <__pete...@web.de> wrote:
> lina wrote:
>
>> On Tue, Nov 1, 2011 at 10:33 PM, Dave Angel wrote:
>>> On 11/01/2011 10:11 AM, lina wrote:
>
>>> Just use the sort() method of the list object. In particular, items()
>>> returns an unordered list, so it's r
On 01-Nov-11 08:34, Mayo Adams wrote:
When writing a simple for loop like so:
for x in f
where f is the name of a file object, how does Python "know" to interpret
the variable x as a line of text, rather than,say, an individual
character in the file? Does it automatically
treat text files
When writing a simple for loop like so:
for x in f
where f is the name of a file object, how does Python "know" to interpret
the variable x as a line of text, rather than,say, an individual character
in the file? Does it automatically
treat text files as sequences of lines?
--
Mayo Adams
lina wrote:
> On Tue, Nov 1, 2011 at 10:33 PM, Dave Angel wrote:
>> On 11/01/2011 10:11 AM, lina wrote:
>> Just use the sort() method of the list object. In particular, items()
>> returns an unordered list, so it's ready to be sorted.
>>
>> for residues, numbers in new_dictionary.items().sort()
On Tue, Nov 1, 2011 at 10:33 PM, Dave Angel wrote:
> On 11/01/2011 10:11 AM, lina wrote:
>>
>> Hi,
>>
>> The following code (luckily) partial achieved what I wanted, but I
>> still have few questions:
>>
>>
>> #!/usr/bin/python3
>>
>> import os.path
>>
>> INFILEEXT=".txt"
>> OUTFILEEXT=".new"
>> D
Alexander Etter ,
can u help me setup the emacs as python ide - like code refactoring and
stuff?
can i get to you by email?
Thanks.
>
> Rinu, I use emacs. I use Python and C++. I'm also a university student.
> Last semester I learned python 2.7 using IDLE, and continued with IDLE
> while I searche
On 11/01/2011 10:11 AM, lina wrote:
Hi,
The following code (luckily) partial achieved what I wanted, but I
still have few questions:
#!/usr/bin/python3
import os.path
INFILEEXT=".txt"
OUTFILEEXT=".new"
DICTIONARYFILE="dictionary.pdb"
orig_dictionary={}
new_dictionary={}
abetaABresidues={}
d
On 11/01/2011 10:19 AM, Jose Amoreira wrote:
HiOn Tuesday, November 01, 2011 01:55:18 PM Joel Goldstick wrote:
On Tue, Nov 1, 2011 at 9:48 AM, Jefferson Ragot wrote:
In a Vista command prompt if I typed this:
>>> python somescript.py filename
Will sys.argv[1] return a valid path o
On 11/01/2011 10:05 AM, Hugo Arts wrote:
On Tue, Nov 1, 2011 at 2:48 PM, Jefferson Ragot wrote:
In a Vista command prompt if I typed this:
>>> python somescript.py filename
Will sys.argv[1] return a valid path or just the filename?
If it just returns the filename, is there a simpl
HiOn Tuesday, November 01, 2011 01:55:18 PM Joel Goldstick wrote:
> On Tue, Nov 1, 2011 at 9:48 AM, Jefferson Ragot wrote:
> > In a Vista command prompt if I typed this:
> > >>> python somescript.py filename
> >
> > Will sys.argv[1] return a valid path or just the filename?
> > If it ju
Hi,
The following code (luckily) partial achieved what I wanted, but I
still have few questions:
#!/usr/bin/python3
import os.path
INFILEEXT=".txt"
OUTFILEEXT=".new"
DICTIONARYFILE="dictionary.pdb"
orig_dictionary={}
new_dictionary={}
abetaABresidues={}
def processonefiledata(infilename):
On Tue, Nov 1, 2011 at 2:48 PM, Jefferson Ragot wrote:
> In a Vista command prompt if I typed this:
>
> >>> python somescript.py filename
>
> Will sys.argv[1] return a valid path or just the filename?
> If it just returns the filename, is there a simple way to get the path?
>
sys.argv c
On Tue, Nov 1, 2011 at 9:48 AM, Jefferson Ragot wrote:
> In a Vista command prompt if I typed this:
>
> >>> python somescript.py filename
>
> Will sys.argv[1] return a valid path or just the filename?
> If it just returns the filename, is there a simple way to get the path?
>
> --
> Jef
In a Vista command prompt if I typed this:
>>> python somescript.py filename
Will sys.argv[1] return a valid path or just the filename?
If it just returns the filename, is there a simple way to get the path?
--
Jefferson B. Ragot
___
Tutor m
(Pleas put your reply after the part you're quoting. What you did is
called top-posting, and makes reading the messages very confusing)
On 11/01/2011 12:10 AM, Chris Kavanagh wrote:
I'm going to thank Steven once again, and answer my own question in
the 2nd paragraph directly below (Steven hasn
On Oct 31, 2011, at 15:31, Tim Johnson wrote:
> * Rinu Boney [111031 07:03]:
>> I Use Windows.I Already Know C/C++ which makes python syntax seem very easy.
>> Maybe Setting Up Emacs With Python Will Make Me Productive.
>> I Have Eclipse With PyDev.
>> Why Is There Not A Pythonic Emacs?
> Rinu,
Alan Gauld wrote:
> On 31/10/11 20:22, Peter Otten wrote:
>> Alan Gauld wrote:
>>
>>> if choice.lower() not in ('prs'): # NB use a single string
>>
>> That's not a good idea. If a user accidentally enters PR (for example)
>> your version will mistake that for a valid choice.
>
> Good point, altho
59 matches
Mail list logo