Title: Signature.html
The program I'm modifying uses Tkinter widgets and passes values
between a non-Tkinter (OperationalSettings class) object and an object
of class OperationalSettingsDialog(tkSimpleDialog.Dialog). The former
saves changed dialog values in the main program, Sentuser_GUI (mai
You can look at a site called UtilityMill (http://utilitymill.com/) that
hosts user-defined Python code, and wraps it in an API to be used
interactively through an HTML form, or programmatically over HTTP. I'm
pretty sure that the author makes the source code available for this site.
Also, you co
Title: Signature.html
Yes, I have the Command Prompt (DOS) window as an alternative, but I
use IDLE and execution therein as a convenient artifice until I've run
into a Tkinter problem that is not well served by the IDLE execution
approach. I could easily switch in the present condition to the
"Daniele" wrote
With module here I meant plug-in or extension: a piece of code
written
by someone else that can be easily (and automaticallly) integrated
into my program.
OK, To do that you need to provide an intrerface in your code
that the plug-in can use. That is to say you must call a d
"Wayne Watson" wrote
My Tkinter program can crash at this stage, and the shell window is
locked from text entry, and the GUI displayed. I can kill the window
by
using X in the corner, and responding to a few dialogs. There must
be another way.
There are lots of ways to kill an errant progra
Not sure if this is what you mean, but:
Say you have the files efunc.py and trytry.py in the same folder.
*The content of efunc.py is:*
def funky():
print 'funkytown'
*The content of trytry.py is:*
import efunc
efunc.funky()
*Output would be:*
n...@ububox:~$ python trytry.py
funkytown
n...@
> From: W W
> Subject: Re: [Tutor] modular program
>>Where can I find some "best practices" for writing modular programs?
>> I thought about a txt file containing function calls that my program will
>> parse and execute in order, or is it better just to execute every .py file
>> in a certain "mod
Daniele wrote:
[snip]
With module here I meant plug-in or extension: a piece of code written
by someone else that can be easily (and automaticallly) integrated
into my program.
My program must provide the posibility to be extended without editing
its code, just like mozilla's add-ons.
That
On Sun, Mar 1, 2009 at 3:51 PM, Wayne Watson
wrote:
> x = str(self.start_time)
> set_loc_dict["start_time"] =
> datetime.datetime.strptime(x,"%H:%M:%S")
>
> It seems like there should be a simpler way to wrestle this to datetime.
You say self.start_time is a str, so there is no ne
Title: Signature.html
My Tkinter program can crash at this stage, and the shell window is
locked from text entry, and the GUI displayed. I can kill the window by
using X in the corner, and responding to a few dialogs. There must be
another way. One way, in my case, is to pull down the program's
Title: Signature.html
Very good, with a nice insight about default. While datetime works
well for lots of date/time needs, I find it a bit unwieldy. It takes a
bit of patience and does not attach to one's memory well, IMHO.
So that solves my problem, but I'll continue by asking if this
proced
Note that all Google inquiries are not equal. That is, what you do and
what I do are not the same. Thanks for the try though.
Sander Sweers wrote:
2009/3/1 Sander Sweers :
Googling for python and time gives as first result.
Sorry this is not correct, ignore it.
Greets
On Sun, Mar 1, 2009 at 10:04 AM, Wayne Watson
wrote:
> Ok, how do I do what's mentioned in Subject?
>
One thing to be aware of - Python datetimes are just that: date + time. If
you specify only the time, the date will be filled in with a default value -
generally the beginning of the epoch for
On Sunday 01 March 2009 12:04, Wayne Watson wrote:
> Ok, how do I do what's mentioned in Subject?
There's an inverse to the strftime() function, strptime(), also in the time
module, that will do this.
Cheers
___
Tutor maillist - Tutor@python.org
htt
2009/3/1 Sander Sweers :
>
> Googling for python and time gives as first result.
Sorry this is not correct, ignore it.
Greets
Sander
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
2009/3/1 Wayne Watson :
> Ok, how do I do what's mentioned in Subject?
Googling for python and time gives as first result.
http://www.doughellmann.com/PyMOTW/datetime/index.html
Which covers all you need to know to solve this.
Greets
Sander
___
Tutor
Title: Signature.html
Ok, how do I do what's mentioned in Subject?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
"Nature, to be commanded, must be obeyed."
"Daniele" wrote
I'd like to write a python program which can be easily extended by
other
people. Where can I find some "best practices" for writing modular
programs?
Try reading wikipedia.
Try looking under "modular", "coupling" and "cohesion"
You could also try "Frameworks"
I thought abou
2009/2/28 Alan Gauld :
>
> "Richard Lovely" wrote
>
>> > Sorry, I should have pointed out that you will need to redefine
>> > all your functions to accept a parameter.
>>
>> Always makes me smile when (experienced) people redesign the wheel...
>>
>> From the docs (http://www.python.org/doc/2.6/lib
On Sun, Mar 1, 2009 at 3:36 AM, Daniele wrote:
> Hi,
> I'd like to write a python program which can be easily extended by other
> people. Where can I find some "best practices" for writing modular programs?
> I thought about a txt file containing function calls that my program will
> parse and exe
Hi,
I'd like to write a python program which can be easily extended by other
people. Where can I find some "best practices" for writing modular programs?
I thought about a txt file containing function calls that my program will
parse and execute in order, or is it better just to execute every .py f
21 matches
Mail list logo