Function to retrieve running script

2005-12-03 Thread Harlin Seritt
Is there a function that allows one to get the name of the same script running returned as a string? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Function to retrieve running script

2005-12-04 Thread Harlin Seritt
Thanks Mike, that will work just as well... just disappointed in myself that i lack the creativity to think of something that simple ;-) thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Need eyes to look at code... time not having an attribute called asctime()

2005-12-05 Thread Harlin Seritt
T INFORMATION: Pinging '+ip+' at '+time.asctime() AttributeError: 'str' object has no attribute 'asctime' Press any key to exit I'm sure this is something simple but for this I am having trouble figuring it out. Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Using Tix and Tkinter

2004-12-31 Thread Harlin Seritt
Traceback (most recent call last): File "TixTest.py", line 8, in ? Tix.tixControl().pack() AttributeError: 'module' object has no attribute 'tixControl' Any reason why I am not able to pull up this widget to work with it? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: extreme newbie

2005-06-18 Thread Harlin Seritt
? -- http://mail.python.org/mailman/listinfo/python-list

Re: Want to learn a language - is Python right?

2005-06-20 Thread Harlin Seritt
as needing something for web apps, CherryPy is great -- just learn Python first. PHP is good but it has fallen out of favor with me though there are a ton of people out there who think it is the greatest thing since sliced bread. Take a look at the Python tutorial: http://docs.python.org/tut/tut.html. Good luck, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Formatting data to output in web browser from web form

2005-07-09 Thread Harlin Seritt
t '\n' is not being used. Is there anything I can do to make sure paragraphs show up properly? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Formatting data to output in web browser from web form

2005-07-11 Thread Harlin Seritt
This is perfect. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

How to run python script in background after i logout

2005-07-24 Thread Harlin Seritt
I have a remote linux server where I can only access it via ssh. I have a script that I need to have run all the time. I run like so: python script.py & It runs fine. When I log off ssh I notice that the script died when I logged off. How do I make sure it stays running? thanks, Harlin Se

Help with Regular Expressions

2005-08-10 Thread Harlin Seritt
d out how to output the matches for this expression of my 'wordList' into a neat list variable. How do I get this done? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Regular Expressions

2005-08-10 Thread Harlin Seritt
Ahh that's it Frederik. That's what I was looking for. The regular expression problems I will take care of, but first wanted to walk before running. ;) Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Regular Expressions

2005-08-10 Thread Harlin Seritt
Forgive another question here, but what is the 'r' for when used with expression: r'\w+...' ? -- http://mail.python.org/mailman/listinfo/python-list

Machine Name

2005-08-23 Thread Harlin Seritt
How does one get the machine name with Python that the actual script is running on? Obviously, one could parse the hosts file but I was wondering if there was a quick way to get it done? thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: use threading without classes

2005-08-31 Thread Harlin Seritt
Is there any reason why you wouldn't want to do this using the the threading class? To each his own I suppose. You can try the following though you'll at least need to use functions: import time import thread def myfunction(string,sleeptime,*args): while 1: print string time

Re: Considering moving from PowerBuilder to Python

2005-08-31 Thread Harlin Seritt
shake a stick at :-). Harlin Seritt Internet Villa: www.seritt.org -- http://mail.python.org/mailman/listinfo/python-list

Win32: Possible to use Python to create Snap-Ins for MMC?

2005-09-01 Thread Harlin Seritt
Is it possible to use Python to create snapins for the MMC? Thanks, Harlin Seritt Internet Villa: www.seritt.org -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with smtplib

2005-09-02 Thread Harlin Seritt
What are you getting in your smtpd logs? Are you using postfix? sendmail? or are you running this against a Windows stmp service? Harlin Seritt Internet Villa: www.seritt.org -- http://mail.python.org/mailman/listinfo/python-list

Re: python script under windows

2005-09-09 Thread Harlin Seritt
x27;s like 30USD but it does a great job and adds a few extra features. HTH, Harlin Seritt Internet Villa: www.seritt.org -- http://mail.python.org/mailman/listinfo/python-list

Python Search Engine app

2005-09-14 Thread Harlin Seritt
Hi, Is anyone aware of an available open-source/free search engine app (something similar to HTDig) written in Python that is out there? Googling has turned up nothing. Thought maybe I'd mine some of you guys' minds on this. thanks, Harlin Seritt Internet Villa: www.seritt.org

Rendering HTML

2005-09-16 Thread Harlin Seritt
I am looking for a module that will render html to console but formatted much like one might see with Lynx. Is there such a module already out there for this? Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Rendering HTML

2005-09-16 Thread Harlin Seritt
Hi DH, Thanks for this blurb from ASPN. I am really looking, however, to do this on a Windows machine as opposed to a Unix one at this point. This will come in handy down the road I am sure. Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: pinging from within python

2005-09-18 Thread Harlin Seritt
You can do the following: import os data = os.popen('ping machineName').read() if 'request timed out' in data or 'unknown host' in data: Ping Failed Code else: Ping Returned Something Good Code This is the quickest and really most effective way to g

Putting a lock on file.

2005-09-18 Thread Harlin Seritt
g: try: open(file, 'r').read() flag = 1 except: pass This may seem nice on paper but I hate to run a while for an indeterminate amount of time. Is there anything else that can be done that would be better? Thanks, Harlin Seritt -- http://mail.python.org/mai

Re: Creating Button arrays with different commands using Tkinter

2005-02-23 Thread Harlin Seritt
Thanks Frederik. I knew it was not binding the way I intended to, but just had no idea why or how to make it do so... thanks for the quick lambda lesson :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: user interface for python

2005-02-23 Thread Harlin Seritt
Tkinter! Ease* Well-documented? Easy to Learn? Functionality * Can I get it to do what I need it to do? Looks *** Does it look good? Well, beauty is after all in the eye of the beholder. Anything I can get to work on either platform with minimum effort

Re: How to write a ping client

2005-02-23 Thread Harlin Seritt
? -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about logfiles in Python

2005-02-23 Thread Harlin Seritt
I'm not familiar with Exchange log files but this can be done rather easily assuming the log file is a flat text file (which usually these are not-- like NT event logs). search_str = "words and phrases" data = open(LogFile, 'r').read() if search_str in data: flag = 1 If they are binary files,

Re: Python Online Programming Contest

2005-02-24 Thread Harlin Seritt
Actually MIT is an abbreviation and not an acronym in the true sense of the word :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Best IDe

2005-02-24 Thread Harlin Seritt
IDLE, PytonWin and SPE are all free and offer all of the important features you'll see even in commercial IDE's. -- http://mail.python.org/mailman/listinfo/python-list

Default value for Listbox (Tkinter)

2005-02-24 Thread Harlin Seritt
Whenever I set up something similar: vals = ['1', '2','3'] for v in vals: listbox.inset(END, v) I notice that when this listbox is displayed, there is never a default value. How can I make sure that one of the indices is selected by default? Thanks, Harlin -- http://mail.python.org/mailman

Re: wxpython tutorials

2005-02-24 Thread Harlin Seritt
Here is the old one... http://www.wxpython.org/tutorial.php It truly is a short tutorial though. This one's even better: http://wiki.wxpython.org/index.cgi/FrontPage I am not a wxPython enthusiast. I like Tkinter much better. If you have an interest, take a look at: http://www.pythonware.com/lib

Re: Default value for Listbox (Tkinter)

2005-02-25 Thread Harlin Seritt
Thanks Jorgen! I was reading the Tkinter tutorial (I was looking at this particular page: http://www.pythonware.com/library/tkinter/introduction/x5513-methods.htm) and saw this for select_set(): select_set(index), select_set(first, last) Add one or more items to the selection. I think this was

Re: Trees

2005-02-25 Thread Harlin Seritt
Would this be for a GUI toolkit or maybe using a standard class scheme? -- http://mail.python.org/mailman/listinfo/python-list

Re: Yet another logo design...

2005-02-26 Thread Harlin Seritt
I like the type logo (on the right of the image). The black snake-like image can be cropped though. :-) Harlin -- http://mail.python.org/mailman/listinfo/python-list

Polling selections from a listbox (Tkinter)

2005-02-26 Thread Harlin Seritt
I am trying to poll selections from a listbox but can't seem to get it to work correctly. class pollstuff: def __init__(self, master): self.listbox = Listbox(master) self.listbox.pack() names = ['Bob', 'Neal', 'Mike'] for n in names: self.listbox.insert(END, n)

Re: function expression with 2 arguments

2005-02-26 Thread Harlin Seritt
Not exactly sure what you're looking for but you can do the following: def dosomething(numlist): return numlist[0] + numlist[1] numlist = [ 5, 10] val = dosomething(numlist) If so, that would be somewhat pointless. It's always best to keep it simple. It looks like the function you wrote above

Re: function expression with 2 arguments

2005-02-27 Thread Harlin Seritt
? -- http://mail.python.org/mailman/listinfo/python-list

How to define a window's position (Tkinter)

2005-02-27 Thread Harlin Seritt
I am trying to use the geometry() method with the toplevel window called root. I know that one can do the following: root.geometry('400x400+200+200') This will put the window in 200, 200 position with a size of 400x400. Now, I don't really want to set the size. I simply want to set the position o

Re: Googlewhacker

2005-02-27 Thread Harlin Seritt
They actually won't ban your IP for this. They only limit your number of searches per day. I discovered this once when I used http://www.google.com as a test metric for my network monitoring program. I do like your script though. Regards, Harlin -- http://mail.python.org/mailman/listinfo/python

Explicit or general importing of namespaces?

2005-02-28 Thread Harlin Seritt
Is there really a major performance difference between doing the following: import Tkinter as TK TK.Label(yada yada) OR from Tkinter import * Label(yada yada) I'm unable to tell a real difference other than in the code writing :-). Thanks, Harlin -- http://mail.python.org/mailman/listinfo

Faster way to do this...

2005-03-01 Thread Harlin Seritt
I've got the following code: nums = range(0) for a in range(100): nums.append(a) Is there a better way to have num initialized to a list of 100 consecutive int values? Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Faster way to do this...

2005-03-01 Thread Harlin Seritt
Excellent point Warren. I have been working with Python for about 3 years in all, but only really seriously for about a year. I am still utterly amazed that near everything that takes me about 5 to 20 lines of code can be done in 1, 2 or 3 lines of Python code (when done correctly). It is very frus

Re: Closing dialog window in Tkinter

2005-03-01 Thread Harlin Seritt
You can add this: button = Button(top, text="Close Me", command=top.destroy) button.pack() That will kill the Toplevel window. Cheers, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Closing dialog window in Tkinter

2005-03-02 Thread Harlin Seritt
Do you need this toplevel window to not be iconified--where it shows up as a separate window? You can also do this: def new_window(self, master): t = Toplevel() t.transient(master) etc... Svennglen, I put this in here because most likely you're next question may be, how in the world do

Re: scrollbar dependencies

2005-03-03 Thread Harlin Seritt
Pardon a question I should already know the answer to, but what are the *args in the: def xscrollboth(*args): c1.xview(*args) c2.xview(*args) Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Setting default option values for Tkinter widgets

2005-03-03 Thread Harlin Seritt
There are certain options for Tkinter widgets that have default values that I don't much care for (borderwidth, font come to mind) and continuously change when I'm building interfaces. With a bit of tweaking I have been able to give the widgets a look that rivals the best of them. However, I get ti

Re: Python glade tute

2005-03-04 Thread Harlin Seritt
Not to make light of your tutorial but it can use some editing (the English grammar and spelling is below par). I understand that most likely English is not your first language. Given that, I think you did a great job. If you like, email me back and I'll be glad to help out with that, but I can onl

Re: tkinter entry eat chars?

2005-03-04 Thread Harlin Seritt
You can use the textvariable option for the Entry widget. Set a bind event for this widget that when any key pressed the StringVar() will be polled via StringVar().get(). You do some checking for certain chars you don't want entered and then delete them as they occur. Harlin "phil" <[EMAIL PROTEC

Re: Explicit or general importing of namespaces?

2005-03-04 Thread Harlin Seritt
I think the bottom line on this is using your own sense of risk/reward with each given module imported. Some modules (Tkinter comes to mind) it makes sense to pollute while others it doesn't. Harlin "Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Peter Mayne wrote:

Re: [announcement] - python graph library

2005-03-04 Thread Harlin Seritt
"Maxim Khesin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Folks, > I recently started working on a graph-algorithms library in Python. What > makes this one different from the other couple of libs that are > available is a heavy influence from the C++ Boost Graph Library.

Adding an option on the fly (Tkinter)

2005-03-06 Thread Harlin Seritt
I am making use of a Checkbutton widget. However, I would like to add an option or method "on the fly." For example I would like to bind a filename ("filename.txt") to a particular Checkbutton widget so that I call it later as: widget["filename"] Is this possible to do? Thanks, Harlin -- http

Re: Can a method in one class change an object in another class?

2005-03-06 Thread Harlin Seritt
Here's what I came up with: #objtest.py class first: def __init__(self): a = 'a' self.a = a print self.a def update(self): print 'initially, a is', self.a self.a = second(self.a) print 'afterwards, a is', self.a.call(self.a) class secon

Using for... for multiple lists

2005-03-06 Thread Harlin Seritt
I am using the following code: for i, f in filelist, self.checkbox: if f.get(): print i I am getting an error: Exception in Tkinter callback Traceback (most recent call last): File "C:\Python23\lib\lib-tk\Tkinter.py", line 1345, in __call__ return self.func(*args) File "install.

Re: Adding an option on the fly (Tkinter)

2005-03-06 Thread Harlin Seritt
Would I do this like: buttondict = {button1, "name.txt"} ?? Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Using for... for multiple lists

2005-03-06 Thread Harlin Seritt
Actually the sequences are of the same length. Forgot to mention that. thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: seeking tree-browser widget for use with Tkinter

2005-03-06 Thread Harlin Seritt
Actually it should be here: http://py.vaults.ca/apyllo.py/808292924.247038364.90387689.96972321 Cheers, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: global variables

2005-03-07 Thread Harlin Seritt
You most likely need to construct your script using OOP. Can give you give an example of code you're using when you get this error? This helps a lot. Regards, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to script DOS app that doesn't use stdout

2005-03-10 Thread Harlin Seritt
"Phantom of the Keyboard" ... now that's a name! -- http://mail.python.org/mailman/listinfo/python-list

Setting sizes of widgets (PyGTK)

2005-03-11 Thread Harlin Seritt
I have the following code and I would like to know how to set the length and width of widgets like Buttons. When the window opens the button fills up the space even though I have told it not to. Anyone know how I can accomplish this? : import pygtk, gtk class Greeter: def __init__(self)

Re: Python Tkinter Newbie question

2005-03-12 Thread Harlin Seritt
You have: ="@/test.xbm" take the '/' out or (if it is in a different dir which i think it is), do ="/@test.xbm" also... make sure your *.xbm is really a bitmap file (that would just be another thing to check... not to say its not the proper format)... Reg

Re: Licensing Python code under the Python license

2005-03-12 Thread Harlin Seritt
If this is for making money, make it either a proprietary license or BSD. If you're giving it away and expect nothing for it except maybe fame, do GPL. :-) Regards, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Licensing Python code under the Python license

2005-03-12 Thread Harlin Seritt
When you ask an opinion, you can expect a long thread list... even if it's something inane like "What kind of license should I use?"... hacker/geeks/freaks/wannabes are only too happy to issue an opinion -- warranted or otherwise... Regards, Harlin Seritt -- http://mail.pyt

Re: Python Tkinter Newbie question

2005-03-12 Thread Harlin Seritt
Try not to triple post if you can help it (I'll assume you accidentally hit the SENT button three times ) Regards, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a problem on this simple code

2005-03-12 Thread Harlin Seritt
hah, this code is anything but simple... -- http://mail.python.org/mailman/listinfo/python-list

Searching for a ComboBox for Tkinter?

2005-03-13 Thread Harlin Seritt
python programmer who forgets that there usually is a better, faster more graceful way to do things with Python than with C/C++/Java. Cheers, Harlin ###### # Seritt Extensions: # Date: 02262005 # Class ComboBox # Add this sect

Re: Bind Escape to Exit

2005-03-13 Thread Harlin Seritt
same dilemma as you. Good luck. If you find a better way please post it. Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Harlin Seritt
Or if you prefer you can download it here: http://www.seritt.org/pub/tkinter/Tkinter-03132005.py Replace your Tkinter.py with this one. Make sure you back up your old one in case you decide mine sucks. Thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Creating desktop icons for Innosetup file

2005-03-13 Thread Harlin Seritt
. When I go and manually change the startpath on the icon's property box, everything works fine. How do I ensure that the icon starts in the apppath? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating desktop icons for Innosetup file

2005-03-13 Thread Harlin Seritt
Thanks Will! That did the trick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Harlin Seritt
Thanks nirinA... I've played with that one before. I'm not a big fan of Pmw or Tix so much I guess although when it gets down to it, those 'extra' toolkits are probably more functional. Cheers, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Harlin Seritt
ahh Frame! I didn't even think of extending Frame. I kept wondering how I could instead extend entry and listbox... thanks for the pointer. Yeah I know there are others out there, I just wanted to create one from tkinter widgets and keep the constructor as close to other tkinter widgets as possible

Re: urllib's functionality with urllib2

2005-03-13 Thread Harlin Seritt
Is there any reason why you can't import both? import urllib as u import urllib2 as uu -- http://mail.python.org/mailman/listinfo/python-list

Re: how to delete the close button (the X on the right most corner of the window) on a window

2005-03-13 Thread Harlin Seritt
What GUI toolkit are you using? I think this is the point Jeremy is making. Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

A Font Dialog (Tkinter)

2005-03-13 Thread Harlin Seritt
Is there a way to call up the Font dialog box (at least in the Windows API) from Tkinter or another module? thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Listbox fill=BOTH expand=YES (Tkinter)

2005-03-14 Thread Harlin Seritt
I am trying the following: Listbox(parent).pack(fill=BOTH, expand=YES) I notice that the listbox will fill on the X axis but will not on the Y axis unlike other widgets. Is there any way to force this? thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-14 Thread Harlin Seritt
That was it Martin. I forgot to expand the parent. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-14 Thread Harlin Seritt
either YES, True, or 1 should work. -- http://mail.python.org/mailman/listinfo/python-list

Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Harlin Seritt
I was looking at the Tcl/Tk sourceforge page and found that there were a couple of new widgets being produced for Tcl 8.5. Does anyone know if there are any Tkinter wrappers somewhere? thanks, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Harlin Seritt
Martin, Take a look here: http://mail.python.org/pipermail/tkinter-discuss/2004-March/10.html It is a well-known post from what I understand. You may have already seen it before. Actually, (as I'm looking at a 8.4 demo set from ActiveTcl distribution), it seems the Tree widget has been added t

Re: Jython Phone Interview Advice

2005-03-15 Thread Harlin Seritt
George, Know what they will be wanting you to do with Jython. This has bitten me in @ss a couple of times. I guess it was lack of attention to detail. :-) Good Luck! Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Harlin Seritt
Martin, If I may ask, who actually works on the Tkinter module? Is there a certain group that does this? I'm just curious as I've never been able to find this information. I know there are, of course, someone who develops Tk but just not sure who does this on the Python side. Thanks, Harlin --

Re: Tkinter wrappers for TkTreeCtrl and Tile

2005-03-15 Thread Harlin Seritt
(snip) >>That said I have got a Tile Button example working (and I can change >>it's style) so perhaps not that much work Do you happen to have a sampling of this that I can get my hands on?? >>I've cc'd the tkinter mailing list to see if there is any more interest >>over there... Thanks for d

Re: Is Python like VB?

2005-03-16 Thread Harlin Seritt
uction/ [wxPython:]http://www.wxpython.org/ [PyGTK:] http://www.pygtk.org/ Purusing these links will give you a very good idea of whether Python is right for you. Naturally we'd all like to say 'YES Python is good for you!' but you have to investigate for yourself. Goo

(Tkinter) Adding delay to PopUpMsg

2005-03-17 Thread Harlin Seritt
eted widget's space (in this case the button). That works ok but I've found that while waiting I can't activate (or 'click') on the button until the PopMsg has shown up. Is there anything I can do to solve this problem? thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Video Catalogue

2004-12-02 Thread Harlin Seritt
Tom B.: If you're not having trouble saving with dict then use that. You only need pickle if using lists or dicts are not doing the job when the data in them are integers or long. "Tom B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Rodney Dangerfield" <[EMAIL PROTECTED]> wr

Re: change windows system path from cygwin python?

2004-12-15 Thread Harlin Seritt
ironments you can do: "set path=c:\path\to\whatever" # As a line in a Batch file -- Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: A completely silly question

2004-12-17 Thread Harlin Seritt
Amir Dekel wrote: > This must be the silliest question ever: > > What about user input in Python? (like stdin) > Where can I find it? I can't find any references to it in the > documentation. > > Amir Simple, Simple, Simple: Var = raw_input("Some prompting te

Re: Is this a good use for lambda

2004-12-17 Thread Harlin Seritt
parate function for it. It may actually take less time and be a good deal more readable. Also, you'll be able to call this mess again if you need to. :-) -- Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: better lambda support in the future?

2004-12-17 Thread Harlin Seritt
aste time on them. Why should this part of the langauge > be any different? > > Jp A lambda should be used for a one-time, one-line-use function that you have no intention of calling again (anything more would be an inefficiency--which you profess not to be fond of). It is not terribly d

Re: how to start a new process while the other ist running on

2004-12-21 Thread Harlin Seritt
Quickie: os.system("/path/to/script.sh &") More elegant, have a look at threads ---- Harlin Seritt Erik Geiger wrote: > Hi, > > sorry, my english ist not that got but I'll try. > > I have a running python script (capisuit incoming.py). This script

PyGTK Button Size Question

2005-03-23 Thread Harlin Seritt
How does one set the width of a gtk.Button explicitly? and height for that matter as well... thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

How to move insert to position in Text widget (Tkinter)

2005-03-25 Thread Harlin Seritt
dit.search(findString.get(), 1.0, stopindex=END) if not pos: break print pos start = pos + "+1c" break ---end code--- thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: How to move insert to position in Text widget (Tkinter)

2005-03-25 Thread Harlin Seritt
Frederik, Thanks! Just looking at your site (effbot and pythonware). I don't know what I'd do without it! Cheers, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to ensure Maximize button shows in Linux/Unix (Tkinter)

2005-03-26 Thread Harlin Seritt
Diez, Thanks for the quick reply. I am running this under KDE. I actually haven't tried doing so under any other wm for the moment. Any ideas how to get it to show in KDE? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

How to ensure Maximize button shows in Linux/Unix (Tkinter)

2005-03-26 Thread Harlin Seritt
I have a tkinter program that shows the 'maximize' button while running on Windows but not in Linux. Is there a way to make it show in Linux? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Shell Editor Question

2005-03-27 Thread Harlin Seritt
hell by typing exit. You'll need to do a Control-D & Enter ;-) Hope this makes sense. Good luck. Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: good IIS 6.0(win2k3) python CGI web ext. setup instructions

2005-03-28 Thread Harlin Seritt
diate or even advanced (in a lot of cases), CherryPy allows one to actually program an entire website in Python. For me CherryPy has been the holy grail of web applications (at least for now) making me forget entirely about using PHP or even ASP.NET for web development projects. Cheers, Harlin S

Re: hiding a frame in tkinter

2005-03-28 Thread Harlin Seritt
faramarz, Most likely, you'll need to replace the 'forgotten' frame with another one or other widget. You can immediately do *.pack() and it will replace the frame (assumming you haven't already packed something else there). Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Py2exe and dotNet Python

2005-03-30 Thread Harlin Seritt
nsole=["helloform.py"]) --- I run the setup like this: python setup.py py2exe. Is there anything else I need to do to get this converted into a *.exe file successfully? Thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Showing errors explicitly in try... except

2005-04-01 Thread Harlin Seritt
When using try... except... errors don't show up. Is there a way to force stderr despite using try...except? thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >