Storing Passwords

2008-08-19 Thread Eric Wertman
Any ideas, much appreciated. Thanks! Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: EOF

2008-08-22 Thread Eric Wertman
.write(f1.read(1024)) except EOFError : break f1.close() f2.close() Not that it's really any better, if it works... I'm wondering myself. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie needs help

2008-08-26 Thread Eric Wertman
Is the loginout file named loginout.py ? It needs to be for the import to work. If the import works, you have to refer to those variables within the right namespace, ie : loginout.url, loginout.adminlogin, etc. On Tue, Aug 26, 2008 at 12:46 PM, frankrentef <[EMAIL PROTECTED]> wrote: > Gree

Re: Tkinter Unix and Windows incompatibility

2008-08-27 Thread Eric Brunel
On Wed, 27 Aug 2008 06:50:30 +0200, akineko <[EMAIL PROTECTED]> wrote: Hello everyone, I'm trying to create custom Tkinter/Pmw widgets for my project. After testing my widgets under Unix (Solaris), I have tried them under Windows and I got a surprise. The widgets came out differently. The follo

Re: Advice on the style to use in imports

2008-08-30 Thread Eric Wertman
mport etree # Actually I guess this doesn't break the rule. from datetime import datetime # This might be a bad idea... I haven't had problems yet though. datetime.datetime gets on my nerves though. just my .02 Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to ms excel

2008-08-30 Thread Eric Wertman
> I'm trying to find a way to write data to excel cells (or to be more > specific to an .xls file), let's say for the sake of argument, data > readen from a file (although it will be calculated in the process). > I've been searching, but couldn't find any examples which allows that. The answer wil

Re: Process "Killed"

2008-08-30 Thread Eric Wertman
x27;m pretty sure that if you exceed a soft limit your program will abort with out of memory error. Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing to ms excel

2008-08-30 Thread Eric Wertman
Yes sorry, that's a really poorly formed sentence all the way around... not a dig on xlrd, but a warning to the OP that they may not find what they are looking for there. > On Aug 31, 12:57 am, "Eric Wertman" <[EMAIL PROTECTED]> wrote: >> If you have >> to in

Re: Large amount of files to parse/organize, tips on algorithm?

2008-09-02 Thread Eric Wertman
I think you really want use a relational database of some sort for this. On Tue, Sep 2, 2008 at 2:02 PM, cnb <[EMAIL PROTECTED]> wrote: > over 17000 files... > > netflixprize. > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Re: Library/project for making an invitation-only website?

2008-09-02 Thread Eric Wertman
I think Drupy is best library for these task. On Tue, Sep 2, 2008 at 12:27 PM, Dani <[EMAIL PROTECTED]> wrote: > Hi. > > I want to create a website where new users need to be invited by an existing > user in order to open an account. Think of it the way Orkut became popular. > > I need a library

Re: Coming from .NET and VB and C

2008-09-03 Thread Eric Wertman
> Using Python. I found "Dive Into Python" which I will be reading shortly The title of the book is good advice all by itself. Especially with prior programming experience, you'll get started very quickly. What will take longer is the assimilation of some of python's neater and more idiomatic

Re: Need formatting suggestion for long strings

2008-09-05 Thread Eric Wertman
> I'm concerned about the formatting of the string in that I do not want the > way I split the string up in source code to affect the way the string is > displayed to the console. In other words, in source, if I break up a single > string into multiple lines (using carriage returns), I would expect

Re: lacking follow-through

2008-09-07 Thread Eric Wertman
+1 Bot -- http://mail.python.org/mailman/listinfo/python-list

Re: lacking follow-through

2008-09-08 Thread Eric Wertman
> Perhaps the wrong idea of what the group is. I would have thought > that > if one had a sufficiently developed idea and wanted to have it / > formally/ > rejected, rather than merely sniped at, then writting a PEP would be > more > apposite than posting to c.l.py. > > It's fine to post your not

Re: Which version

2008-09-12 Thread Eric Wertman
g to compile a new one alongside the stock installation, but you could run into potentially confusing issues later about which one exactly you are using, installing modules for, etc. Easy to avoid if you know what you are doing, but a potential pitfall for a beginner. Eric -- http://mail.python.org/mailman/listinfo/python-list

Attachment Size and SMTP EMail

2008-09-23 Thread Eric E
Hello All - I am using python to send an email with a large zip file as an attachment. I successfully sent a 52M attachment. If I try to send a 63M attachment or larger, the message never gets through. I do not get any errors in my python code. I pasted my python code below. from email.MIMEBa

Re: Attachment Size and SMTP EMail

2008-09-23 Thread Eric E
On Sep 23, 9:52 am, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2008-09-23, Eric E <[EMAIL PROTECTED]> wrote: > > > I am using python to send an email with a large zip file as an > > attachment. I successfully sent a 52M attachment. If I try > > to send a 6

Re: Python is slow?

2008-09-24 Thread Eric Brunel
On Tue, 23 Sep 2008 15:23:12 +0200, sturlamolden <[EMAIL PROTECTED]> wrote: [...] Would it be possible to post this text to some "persistent" web page with (links to) the code you wrote in both languages? This would be a very interesting resource for people experiencing some resistence when

Re: python for *nix system admins

2008-09-27 Thread Eric Wertman
I've been growing a library of my own functions, that use the names of unix commands. They are just conveniences, of course, but I'd suggest the same for sysadmins, it's handy. -- http://mail.python.org/mailman/listinfo/python-list

Using re to find unicode ranges

2008-09-29 Thread Eric Abrahamsen
o fall between 19968 and 40959 using ord(), and I suppose I can go that route if necessary, but I think it would be ugly. Any hints or suggestions would be appreciated! Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Using re to find unicode ranges

2008-09-29 Thread Eric Abrahamsen
On Sep 29, 11:03 pm, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > "Eric Abrahamsen" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Is it possible to use the re module to find runs of characters within a > > certain Uni

Database GUI generation from schema

2008-10-01 Thread Eric Wertman
only found documentation describing such a system in the generic. Thanks! Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Database GUI generation from schema

2008-10-02 Thread Eric Wertman
> Perhaps are you talking about dabo ? > http://www.dabodev.com Yes, that was it. Thanks! I was a little dissapointed to see that the wikipedia entry for that software was deleted. Is dabo not widely used? -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter textwidget problem

2008-10-03 Thread Eric Brunel
On Thu, 02 Oct 2008 21:57:01 +0200, kib2 <[EMAIL PROTECTED]> wrote: Hi, In a tkinter TextWidget I would like to retrieve the last typed word. I've tried this with the 'wordstart' Expression [From the effbot site, "wordstart" and "wordend" moves the index to the beginning (end) of the curren

Re: [OT] .DS_Store files (was Re: Removing .DS_Store files from mac folders)

2006-03-09 Thread Eric Deveaud
=PATTERN option from tar ?? Eric -- CM: Faut-il nommer un modérateur suppléant à Christophe Wolfhugel ? MG: Faudrait savoir ce qu'il en pense ? Va-t-il répondre : « Rien » ? CW: Non. -+- in: Guide du Cabaliste Usenet - Euh... Non, rien. -+- -- http://mail.python.org/mailman/listinfo/python-list

Re: Which GUI toolkit is THE best?

2006-03-10 Thread Eric Brunel
On Fri, 10 Mar 2006 13:36:18 +0100, invitro81 <[EMAIL PROTECTED]> wrote: > Hello > > I've recently learnt python and I do love it! I congratulate all those > geeks who produce this nice language; well, because I could be called a > nearby newbee I've decided to improve my abilities by writing

Re: suse linux 10 and wx.listctrl display issues

2006-03-10 Thread Eric Davis
pass This is a problem with SuSE, but I do it for all linuxes just in case. Eric ianaré wrote: > hum finally did find some SuSE specific RPM's through yast by setting > the media directory to mirros.kernel.org. Cool. But still the same > thing happens... > -- http://mail.python.org/mailman/listinfo/python-list

Tkinter - Drawing rotated text in a widget

2006-03-11 Thread Eric Apperley
How do I draw rotated text in a Tkinter widget using the draw.text method? Alternatively, if I draw text as normal, how can I then subsequently rotate it about its start point? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it better to use class variables or pass parameters?

2006-03-16 Thread Eric Brunel
On 15 Mar 2006 15:04:19 -0800, Derek Basch <[EMAIL PROTECTED]> wrote: > One more question everybody. Say you have a class that performs a > series of evaluations on several strings of peptides. Errr..., no? A class does not perform some operations. A class is a template for objects. What are yo

Module import information

2006-03-21 Thread Eric White
List: Is it possible to determine the name of the module that invoked import from within the imported module? Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Module import information

2006-03-21 Thread Eric White
Peter: Thanks for the reply.  Consider the following situation: A set of variable names is defined along with a list of possible values for each.   A second set of variable names is defined along with an _expression_ for generating a value for each.  For each possible permutation of variables

Re: Module import information

2006-03-21 Thread Eric White
I found a builtin function called "execfile" that seems to suite my needs quite well.  The import function is less applicable.  Thanks for your time.On 3/21/06, Steve Holden <[EMAIL PROTECTED]> wrote: Eric White wrote:> Peter:>> Thanks for the reply.  Consider the follow

Re: tkinter question

2006-03-27 Thread Eric Brunel
On 27 Mar 2006 15:15:05 -0800, <[EMAIL PROTECTED]> wrote: > Hi > > I have a tkinter question. In the following script the window will not > display until the script has finished executing. It appears at the same > time as the output "script finished". How can I make it appear > immediately, with t

Re: tkinter question

2006-03-30 Thread Eric Brunel
(Please quote a part of the message you're replying to; I had problems figuring out you were replying to my post...) On 29 Mar 2006 14:08:02 -0800, <[EMAIL PROTECTED]> wrote: > Ultimately what I am trying to is create a public computer session > manager. > > 1) User logs in and main application

Re: GUI in python

2006-03-30 Thread Eric Brunel
On 29 Mar 2006 14:20:03 -0800, <[EMAIL PROTECTED]> wrote: > Hi, > > I am a python newbie and have used it for about a month. I want to make > a simple GUI app in Python ( I take input form user and do processing > and show results). > > Which gui package is good for me. I need to do it quick and I

Re: tkinter question

2006-03-30 Thread Eric Brunel
On 30 Mar 2006 15:11:19 -0800, <[EMAIL PROTECTED]> wrote: >> If you just create >> a Toplevel and populate it with widgets, it will just display once the >> control is returned to the Tkinter mainloop and no user input will be >> needed. > > Thanks for explaining that. I borrowed the "after" method

Re: how to comment lot of lines in python

2006-03-31 Thread Eric Deveaud
;-) > Or there is something else too ?? some moderns editors allow you to comment/uncomment a selected Bunch of lines of code Eric -- > afin de parfaire mon apprentissage de linux,je cherche sur lille et sa > périphérie une nana tout linux JPH in Guide du linuxien pe

Re: how to comment lot of lines in python

2006-03-31 Thread Eric Deveaud
[EMAIL PROTECTED] wrote: > > Eric Deveaud wrote: > > [EMAIL PROTECTED] wrote: > > > Like in C we comment like > > > /* > > > Bunch of lines of code > > > */ > > > > > > Should we use docstring """ ""

Re: converting lists to strings to lists

2006-04-12 Thread Eric Deveaud
same problem the other way round. e.g. i have a list > which i need to convert to a string in order to send it via udp. my_new_string = ' '.join(my_list) print my_new_string Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: converting lists to strings to lists

2006-04-12 Thread Eric Deveaud
ease please DON'T USE eval Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Initializing defaults to module variables

2006-04-13 Thread Eric Deveaud
bus:~/tmp > python Python 2.4.2 (#1, Mar 22 2006, 12:59:23) [GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> my_var = 'some default value' >>> from foo import *

Re: Iterating command switches from a data file - have a working solution but it seems inefficient

2006-04-13 Thread Eric Deveaud
except getopt.GetoptError, msg: # handle the error as you need Eric -- Je voudrais savoir s'il existe un compteur de vitesse (?) pour savoir à quelle vitesse on est réellement connecté au FAI et surtout si une telle bête existe... où la trouver. -+- RJ in: Guide du Neuneu d'Us

Re: Iterating command switches from a data file - have a working solution but it seems inefficient

2006-04-13 Thread Eric Deveaud
. point 3 optparse is designed for reading from a list of strings I let the conclusion to your imagination ;-)) Eric -- Salut,Je m'appele sed.je suis etudiant en communication, j'ai lu votre message.je viens vous dire un petiit bonjour,et vous laisser mon mél: vous pouvez me

Re: create pixmap from data

2006-04-14 Thread Eric Deveaud
t in order to draw it inside a pygtk GUI. > > Any suggestions about a way to display those informations ? check the PIL (Python Imaging Library), Image module Eric -- S> Je cherche aussi des adresses de lieux contenant des fossiles dans S> la région parisienne http

Re: Skeletal animation

2009-10-04 Thread AK Eric
Building on what others have said and giving a +1 to Carl: I work daily in Maya doing character setup and rigging. As far as doing it straight in Python, again, like others, take a look at PyGame or Blender. I think the main question is: Do you want skeletal animation, or do you want skeletal an

Re: Simple audio

2009-10-21 Thread AK Eric
Yep, you can run it without any kind of GUI to my knowledge. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 Global Variables

2009-10-29 Thread AK Eric
> 2/ in Python, "global" really means "module-level" - there's nothing > like a "true" global namespace. Isn't that __main__? import __main__ __main__.foo = "asdfasdf" print foo # asdfasdf Not advocating, but it does serve the purpose. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 Global Variables

2009-10-29 Thread AK Eric
> Good that you're not advocating it, because IMHO it's bad practice to > have circular import dependencies.  By using the __main__ alias, you > avoid the worst problems, but that just means the others are more subtle. I figured I'd get that kind of response, not that it's incorrect ;) Great power

Re: Python 2.6 Global Variables

2009-10-30 Thread AK Eric
> > It isn't a neat trick anymore once you realize the name '__main__' > > isn't special. > > > Replace __main__ with foo, or config, or whatever, and you get the > > same results. Ok, there is a catch: a file with that name must exist, > > at least an empty one... True. I do feel a bit less spec

Re: How can module determine its own path?

2009-10-30 Thread AK Eric
> > How can a module determine the path of the file that defines it? > > (Note that this is, in the general case, different from sys.argv[0].) > > __file__ Also: import inspect print inspect.getsourcefile(lambda:None) -- http://mail.python.org/mailman/listinfo/python-list

Re: How can a module know the module that imported it?

2009-11-12 Thread AK Eric
so: # moduleA.py import moduleB # moduleB.py import sys stuff = sys._getframe(1).f_locals print stuff Prints: {'__builtins__': , '__file__': 'C:\\Documents and SettingsMy Documents\ \python\\moduleA.py', '__name__': '__main__', '__doc__': None} Looks like you could query stuff['__file__']

Re: How can a module know the module that imported it?

2009-11-12 Thread AK Eric
On Nov 12, 10:10 am, Ethan Furman wrote: > AK Eric wrote: > > so: > > > # moduleA.py > > import moduleB > > > # moduleB.py > > import sys > > stuff = sys._getframe(1).f_locals > > print stuff > > > Prints: > > > {'__

Re: Does turtle graphics have the wrong associations?

2009-11-12 Thread AK Eric
On Nov 12, 11:31 am, Terry Reedy wrote: > Alf P. Steinbach wrote: > > One reaction to >http://preview.tinyurl.com/ProgrammingBookP3> has been that turtle > > graphics may be off-putting to some readers because it is associated > > with children's learning. > > > What do you think? > > I just star

Re: Komodo 6, why "Workspace Restore" after every restart?

2010-11-15 Thread Eric Promislow
te.com/forums/komodo-discussion would be a better place to continue this particular discussion? Thanks for bringing up the issue though. Eric Promislow Komodo Developer -- http://mail.python.org/mailman/listinfo/python-list

Extension on Windows

2010-11-18 Thread Eric Frederich
tories and specified the correct .lib file to get it to compile fine without any errors. What is going on here? I tried running python with -vvv and got no meaningful info... it just fails. What else do I need to do? Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Extension on Windows

2010-11-19 Thread Eric Frederich
On Fri, Nov 19, 2010 at 7:28 AM, Ulrich Eckhardt wrote: >> Now when I created a 2nd function to wrap a library function I get the >> following. >> >> ImportError: DLL load failed: The specified module could not be found. > > This can mean that the module itself couldn't be loaded or that one of t

Re: Extension on Windows

2010-11-19 Thread Eric Frederich
On Fri, Nov 19, 2010 at 8:12 AM, Ulrich Eckhardt wrote: > Eric Frederich wrote: >> Do I put them [DLL dependencies] in some environment variable? >> Do I put them in site-packages along with the .pyd file, or in some >> other directory? > > Take a look at the

Round Trip: C to Python to C Module

2010-11-19 Thread Eric Frederich
g the script from a file. So, how do I return values back to C? Python functions return values but running a python script?... doesn't that just have an exit status? Is there a mechanism for doing this? Thanks in advance, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

C struct to Python

2010-11-30 Thread Eric Frederich
buffer, sizeof(MyStruct)); Then on the Python side I can unpack it using struct.unpack. I'm just wondering if I need to jump through these hoops of packing it on the C side or if I can do it directly from Python. Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

multiple modules from single c extension

2010-12-01 Thread Eric Frederich
be declared as extern? This is where I'm stuck. Thanks, ~Eric -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorate un Frame with window managers title bar, etc en Tkinter 8.5

2010-12-02 Thread Eric Brunel
raised on the line frame.wm_manage()), you can also try to do it at tcl/tk level with the line: master.tk.call('wm', 'manage', frame) > I appreciate any of this item HTH - Eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple modules from single c extension

2010-12-02 Thread Eric Frederich
e for each module"? Are you saying that in python when I say from "Spam.ABC import *" I need a file called "Spam.ABC.[so|pyd]"? On Wed, Dec 1, 2010 at 8:39 PM, Robert Kern wrote: > On 12/1/10 4:12 PM, Eric Frederich wrote: >> >> I have an extension to

Re: Using a window style in a Toplevel window

2010-12-09 Thread Eric Brunel
that I have put the creation of the button and its packing in 2 lines. You should never do variable = widget.pack(…) since pack does not return the widget. It always returns None, so doing so won't put your widget in the variable). The code above should do what you're after. > Thanks in advance. HTH - Eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: Using a window style in a Toplevel window

2010-12-09 Thread Eric Brunel
In article , [email protected] wrote: > Eric, > > Besides style support, what are the advantages of ttk.Frame vs. > Tkinter.Frame? I'd say none. They are both just containers for other widgets, support the same layout managers, and so on. For me, using a ttk.Frame is really

Reference counting problems?

2010-12-09 Thread Eric Frederich
O", python__x); Are python__x and python__return_val the same object, a copy of the object? Would python__x ever get garbage collected? Should my code generator detect when there is only one output and not go through the extra step? Thanks, ~Eric static PyObject * wrapped_foo(PyObject *self,

Creating custom types from C code

2010-12-17 Thread Eric Frederich
Hello, I have an extension module for a 3rd party library in which I am wrapping some structures. My initial attempt worked okay on Windows but failed on Linux. I was doing it in two parts. The first part on the C side of things I was turning the entire structure into a char array. The second part

Re: Creating custom types from C code

2010-12-20 Thread Eric Frederich
n and instantiate that type from C? On Sat, Dec 18, 2010 at 1:18 AM, Stefan Behnel wrote: > Eric Frederich, 17.12.2010 23:58: >> >> I have an extension module for a 3rd party library in which I am >> wrapping some structures. >> My initial attempt worked okay on Windo

Re: [python-committers] [RELEASED] Python 3.2 beta 2

2010-12-22 Thread Eric Smith
On 12/22/2010 8:46 AM, Georg Brandl wrote: Am 22.12.2010 02:15, schrieb Nick Coghlan: On Wed, Dec 22, 2010 at 6:18 AM, Georg Brandl wrote: Since PEP 3003, the Moratorium on Language Changes, is in effect, there are no changes in Python's syntax and built-in types in Python 3.2. Minor nit - w

Creating custom Python objects from C code

2011-01-05 Thread Eric Frederich
files. Question 2: How do I make C helper functions that are part of my extension available to other C projects in the same way that PyList_*, PyString_*, PyInt_* functions are available? Is it possible to have distutils make a .lib file for me? Thanks, ~Eric -- http://mail.python.org/mailman/lis

Re: Creating custom Python objects from C code

2011-01-05 Thread Eric Frederich
On Wed, Jan 5, 2011 at 11:39 AM, Antoine Pitrou wrote: > On Wed, 5 Jan 2011 11:27:02 -0500 > Eric Frederich wrote: >> I have read through all the documentation here: >> >>     http://docs.python.org/extending/newtypes.html >> >> I have not seen any documenta

New article on grabbing city points from geonames, processing with Python, and rendering in MapPoint

2011-02-03 Thread Eric Frost
Add City Coverage to MapPoint using the GeoNames Database by Richard Marsden http://www.mapforums.com/add-city-coverage-mappoint-using-geonames-database-15244.html -- m: 312-399-1586 http://www.MapForums.com http://www.MP2Kmag.com -- http://mail.python.org/mailman/listinfo/python-list

Re: EPD 7.0 released

2011-02-09 Thread Eric Stechmann
Hi, son. Don't know if this would be of any interest to you. Well, I suppose it does provide some interesting. I hope your physical get-together will help out. Love you, David. Dad On Feb 9, 2011, at 8:13 AM, Ilan Schnell wrote: > Hello, > > I am pleased to announce that EPD (Enthought

Re: Another related OO Python ?

2011-02-16 Thread Eric Brunel
In article , Doug Epling wrote: > hey, does anyone find the UML useful during Python development of larger > projects? Well, UML being very Java/C++ oriented, I found out that Python idioms were really difficult to represent in the diagrams. So I'm using it to a very small extent and for doc

Re: How does IDLE do it?

2011-02-16 Thread Eric Brunel
In article , "Richard D. Moores" wrote: > I recently wrote some code that prints information about the 'jukugo' > used in Japanese newspaper articles. A jukugo is a Japanese word > written with at least 2 kanji. An example of a 2-kanji jukugo is 危機 > (kiki -- crisis). I found that I could no

Re: Another related OO Python ?

2011-02-16 Thread Eric Brunel
In article <6849fd3f-5116-4b35-b274-dc76ae39f...@a11g2000pro.googlegroups.com>, RJB wrote: > On Feb 16, 12:48 am, Eric Brunel > wrote: > > In article , > >  Doug Epling wrote: > > > > > hey, does anyone find the UML useful during Python development of l

Re: [ANN] Leipzig Python User Group - Meeting, May 11, 2010, 08:00pm

2010-05-08 Thread Eric Stechmann
On May 7, 2010, at 11:00 AM, Stefan Schwarzer wrote: === Leipzig Python User Group === We will meet on Tuesday, May 11, 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Julian Moritz will give a talk about CouchDB. Food

Re: problems getting os.system and wxmenu to read options from a file and then execute

2010-06-27 Thread eric dexter
On Jun 27, 5:56 pm, MRAB wrote: > [email protected] wrote: > > I managed to get the program running and the menu options are > > appearing on the list but the programs are not running.  I suspect it > > is my onexecutemethod > > [snip] > > >         #add execute files from the text file list > >

Re: Why Python3

2010-06-27 Thread eric dexter
On Jun 27, 7:46 pm, MRAB wrote: > Stephen Hansen wrote: > > On 6/27/10 6:09 PM, MRAB wrote: > >> Terry Reedy wrote: > >>> Another would have been to add but never remove anthing, with the > >>> consequence that Python would become increasingly difficult to learn > >>> and the interpreter increasin

Re: problems getting os.system and wxmenu to read options from a file and then execute

2010-06-27 Thread eric dexter
On Jun 27, 8:18 pm, MRAB wrote: > eric dexter wrote: > > On Jun 27, 5:56 pm, MRAB wrote: > >> [email protected] wrote: > >>> I managed to get the program running and the menu options are > >>> appearing on the list but the programs are not running.

Re: Python as a scripting language. Alternative to bash script?

2010-06-29 Thread eric dexter
On Jun 28, 5:48 am, Dave Pawson wrote: > I've a fairly long bash script and I'm wondering > how easy it would be to port to Python. > > Main queries are: > Ease of calling out to bash to use something like imageMagick or Java? > Ease of grabbing return parameters? E.g. convert can return both > he

Re: OT Komodo Edit, line selection gutter is one pixel wide?

2010-07-05 Thread Eric Promislow
will set the margin after a file is opened. You currently can't write a post-file-open trigger in Python, (see bug http://bugs.activestate.com/show_bug.cgi?id=45265) Hope this helps, Eric Promislow Komodo Team Member -- http://mail.python.org/mailman/listinfo/python-list

Re: File Manager in Tkinter

2010-08-10 Thread Eric Brunel
In article , John wrote: > As a learning exercise in Tkinter I htought about making a very simple > and basic file manager for my own use. I tried searching google for > any sample project and could not find anything. Not exactly sure how > to start I tought I could ask here? > > I thought abou

type enforcement in _ssl.sslwrap

2010-08-10 Thread Eric Snow
does not inherit from _socket.socket, like you do with file-like objects. Is there a way to make this work, or is the PyArg_ParseTuple call going to stop me. Would I need to have _ssl.sslwrap do something differently with its args? -eric -- http://mail.python.org/mailman/listinfo/python-list

Re: File Manager in Tkinter

2010-08-11 Thread Eric Brunel
In article <[email protected]>, John wrote: > My python is version 2.6.5. Would you recomend I upgrade and if yes > to which version? > > > from tkinter import ttk > > Traceback (most recent call last): > File "", line 1, in > from tkinter import ttk > ImportErro

Re: type enforcement in _ssl.sslwrap

2010-08-11 Thread Eric Snow
On Aug 11, 5:34 am, Steven D'Aprano wrote: > On Tue, 10 Aug 2010 10:40:54 -0700, Eric Snow wrote: > > ssl.SSLSocket.__init__ makes a call to _ssl.sslwrap (in the C module). > > That in turn makes a call to PyArg_ParseTuple, which casts the first arg > &

Re: Python Tkinter Simple Qn

2010-08-12 Thread Eric Brunel
a label as a panel > panel1 = tk.Label(root, image=image1) > panel1.pack(side='top', fill='both', expand='yes') > panel1.image = image1 > panel1.bind("", callback) > > > panel1.pack() > root.mainloop() > > > app() HTH - Eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: __class__ of what

2010-08-12 Thread Eric Brunel
In article <72151646-65cb-47bb-bd55-e7eb67577...@z10g2000yqb.googlegroups.com>, "Eric J. Van der Velden" wrote: > Hello, > > I have, > > class C: > n=0 > def __init__(s): > __class__.n+=1 > > > I do >

Re: how to switch image in tkinter? making it mutable? how?

2010-08-16 Thread Eric Brunel
core, which are basically only GIF so far. BTW, I don't understand why you talk about label.bindŠ If you need to do anything when the label is clicked, you have to make a binding on the label whatever it is. HTH anyway. - Eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: Textvariable display in label (GUI design)

2010-08-16 Thread Eric Brunel
ball: if you don't return the control to the GUI each time your variable is increased, the GUI won't get a chance to update itself. Since you seem to use Tkinter (another wild guessŠ), you probably need a call to the update_idletasks method on any Tkinter widget each time you change you

Re: update of elements in GUI

2010-08-17 Thread Eric Brunel
In article <24dc97b3-a8b5-4638-9cf5-a397f1eae...@q16g2000prf.googlegroups.com>, Jah_Alarm wrote: > hi, I've already asked this question but so far the progress has been > small. > > I'm running Tkinter. I have some elements on the screen (Labels, most > importantly) which content has to be upd

Re: Textvariable display in label (GUI design)

2010-08-17 Thread Eric Brunel
In article , Jah_Alarm wrote: > On Aug 17, 3:32 am, Eric Brunel > wrote: > > In article > > <[email protected]>, > > > >  Jah_Alarm wrote: > > > hi, > > > > > pls help me out with t

Re: message box in Tkinter

2010-08-17 Thread Eric Brunel
ssage > that this module doesn't exist. > > thanks Where did you find any reference to something called messagebox? The actual module name is tkMessageBox and it should be imported separately: import tkMessageBox tkMessageBox.showinfo(message='Have a good day') Should work that way. HTH - Eric - -- http://mail.python.org/mailman/listinfo/python-list

Re: update of elements in GUI

2010-08-17 Thread Eric Brunel
(Top-post corrected; please don't do that, it makes messages very hard to read via usenetŠ) In article <26c363c8-11d7-49b9-a1c1-251ab5ff9...@p22g2000pre.googlegroups.com>, Jah_Alarm wrote: > On Aug 17, 7:19 pm, Eric Brunel > wrote: > > You have to call update_idletas

doctests and decorators

2009-06-16 Thread Eric Snow
: test.test2's func_name: new_function Test.test2's func_name: new_function If things were working right, then the module for test.test2 would be the same as the module for test. I must be missing something, as the referenced discussion suggests a simple conclusion. Any ideas? -eric -- http://mail.python.org/mailman/listinfo/python-list

Re: doctests and decorators

2009-06-16 Thread Eric Snow
On Jun 16, 9:59 am, Eric Snow wrote: > Apparently there is a known issue with doctests, in which tests in > functions using externally defined decorators are ignored.  The > recommended fix is to update the order of checks in the _from_module > method of DocTestFinder in the doctest

Re: doctests and decorators

2009-06-16 Thread Eric Snow
On Jun 16, 10:31 am, Christian Heimes wrote: > Eric Snow schrieb: > > > > > Apparently there is a known issue with doctests, in which tests in > > functions using externally defined decorators are ignored.  The > > recommended fix is to update the order of checks in

Re: doctests and decorators

2009-06-16 Thread Eric Snow
On Jun 16, 11:24 am, Michele Simionato wrote: > On Jun 16, 6:39 pm, Eric Snow wrote: > > > > > On Jun 16, 10:31 am, Christian Heimes wrote: > > > > Eric Snow schrieb: > > > > > Apparently there is a known issue with doctests, in which tests

Re: GNUstep and Python

2009-06-23 Thread Eric Brunel
Diez B. Roggisch wrote: > Paul Watson schrieb: >> Has anyone used GNUstep? >> >> In addition to Objective-C, there are Java and Ruby bindings. >> >> Has anyone created a Python binding to GNUstep? > > There is the pyobjc-binding for OSX, maybe that's suitable for GNUStep. Apparently, it's not: The

Unable to get Tkinter menubar to appear under OS X

2009-06-24 Thread Eric Winter
us runs, but no menus appear, either in the window or at the top of the screen. Am I required to use the Aqua version of Tk on OS X? If not, do I need to do something special on OS X when I built Tk and/or Python? Any hints here would be greatly appreciated. Thanks, Eric Winter Fermi Science Supp

Bytes, Strings, Encoding

2009-07-01 Thread Eric Pruitt
://subdev.blogspot.com/ or reply to the last. Thanks in advance, Eric -- http://mail.python.org/mailman/listinfo/python-list

<    3   4   5   6   7   8   9   10   11   >