Re: [Tutor] Limiting Characters

2006-08-22 Thread Michael Lange
If it is Tkinter, you can use the Entry widget's validatecommand, see: http://mail.python.org/pipermail/tkinter-discuss/2006-August/000863.html I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tkinter Icon Suse 10

2006-08-25 Thread Michael Lange
I didn't look where I supposed to) > Ups..I forgot, I'm using Python 2.4.1 > Hi Alberto, you will have to use an xbm bitmap file for the iconbitmap, like root.iconbitmap("@Change.xbm") HTH Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Regex help

2006-08-28 Thread Michael Janssen
t need to manually sets the "|" specialchars. The python modul /usr/lib/python2.4/tokenize.py comes with lots of examples, especially with OR'ed pattterns. regards Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] about tkinter

2006-09-05 Thread Michael Lange
of course) This makes the close_top1() function be executed when the "X" in the window's upper right corner is clicked. I hope this helps. Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Sorting a list in an add order

2006-09-06 Thread Michael Janssen
t - which defeats many of the advantages to read them in dynamically via glob ;-) Is there any chance to determine the sortorder from the files' content? rough-matching is another topic which might bring up some nice algorithms. regards Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tkinter GUI Grid Layout Manager

2006-09-21 Thread Michael Lange
if w > max: max = w self.grid_columnconfigure(0, weight=1, minsize=max) # etc. self.settings_bttn.grid(row = 0, column = 2, columnspan = 2, sticky = EW) I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Point in polygon intro please~!

2006-10-07 Thread Michael Shulman
Hello, I'm very new to both python and OpenGL, but I'm catching on pretty quick, and trying to make a little game. I'm stuck on being able to do this point-in-polygon test though. Everyone seems to say that I should create a ray and see how many sides of a polygon it intersects, (even vs odd)

Re: [Tutor] tkinter

2006-10-09 Thread Michael Lange
id/TixGrid.html), however it is not much tested and the tixGrid itself seems to be alpha or beta quality, some methods do not seem to have any effect. I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Seeking good resources for Tkinter

2006-10-09 Thread Michael Lange
e. For a start the Tkinter reference from New Mexico Tech (http://infohost.nmt.edu/tcc/help/lang/python/tkinter.html) and Frederik Lundh's book (http://www.pythonware.com/library/tkinter/introduction/) are good, too (and they are free). I hope this helps Michael __

Re: [Tutor] Help me with this Tkinter code

2006-10-11 Thread Michael Lange
s Alan pointed out before, you try to run a new mainloop inside the already existing one which confuses Tk (at least this was true for the version of IDLE i had used). I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] cylinder texture map?

2006-10-12 Thread Michael Shulman
Hello, You guys gave fantastic advice for my last question about point in polygon testing, thanks. New question; I'd like to make a scrolling background for a game I'm working on. I was thinking, since it's all in orthographic view, that a horizontal cylinder which rotates with a texture woul

Re: [Tutor] an alternative to shutil.move()?

2006-10-16 Thread Michael Lange
> unnecesary use of the hard drive and system resources, when both source > file and destination are on the same partition... > Try os.rename(old, new) I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] How to get the width of teh button widget..??

2006-10-20 Thread Michael Lange
#x27;) maxwidth = 0 for button in (b1, b2): w = button.winfo_reqwidth() if w > maxwidth: maxwidth = w master.grid_columnconfigure(0, minsize=maxwidth) master.grid_columnconfigure(1, minsize=maxwidth) or, if this is an option for you, use a P

Re: [Tutor] PyAlsaAudio with Multiple Sound Cards?

2006-10-21 Thread Michael Lange
to figure out how to access my second sound card. > Hi Rick, isn't there any documentation for pyalsaaudio? If no, maybe you would be better off using ossaudiodev, which works well with ALSA, too. For the device question, I guess they might want something like device=/dev/snd/hwC0D0 o

[Tutor] move forward in arbitrary direction

2006-10-27 Thread Michael Shulman
Hello, I have what should be a basic math question, but I keep messing it up. How do I code an equation so that when I have an object facing an arbitrary vector, pressing a key will make it move forwards in that direction? (I understand all the key-based setup, it's just the equation for moving

[Tutor] am I a dope? - nasty_exception_str =.....

2006-10-30 Thread Michael Daly
Hello python tutor when I tried to start a program called 'zope' that depends on python, I got this message at the bottom of a lot of 'traceback'*, and 'zope' didn't start: nasty_exception_str = Exception.__str__.im_func AttributeError: 'wrapper_descriptor' object has no attribute 'im_func' zope

Re: [Tutor] Simple calculator

2006-11-01 Thread Michael Lange
"submit" button you get: Traceback (most recent call last): File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1345, in __call__ return self.func(*args) TypeError: evaluate() takes exactly 1 argument (0 given) so the constructor must be changed like: def evaluate(ev

Re: [Tutor] Help me with graphs...using tkinter

2006-11-01 Thread Michael Lange
its create_rectangle() method. Documentation is here: <http://effbot.org/tkinterbook/> I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] python, python2 & python2.3 in /usr/bin

2006-11-05 Thread Michael Daly
Greetings everyone Could someone please explain these links...python2 seems to have resulted from an installation of python 2.5 (in a specified dir via the --prefix switch) and is a symbolic link to 'python' The others - python and python2.3 are just files and predate the python2 file. I am worri

Re: [Tutor] Amazing power of Regular Expressions...

2006-11-05 Thread Michael Sparks
t regexes are little more than a shorthand for structured parsing, and bearing this in mind, then it's worth recasting JWZ's point as: If your reaction to seeing a problem is "this looks like it can be solved using a regex", you should think to yourself: has someone else already hit this problem and have they come up with a specialised pattern matcher for it already? If not, why not? In this case that *should* have led the poster to the discovery of the specialised parser: time.strptime(date, '%d/%m/%Y') File globs are another good example of a specialised form of pattern matcher. Using a regex when it's appropriate is good. Finding a more appropriate specialised pattern matcher? Even better. Avoiding using regexes in the way I've shown above, because it's an alternative to using a regex? Bad, it's slow and unclear. :-) Michael. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Amazing power of Regular Expressions...

2006-11-06 Thread Michael Sparks
important tools. (which shouldn't be over used). I'm serious, if you think ^[0-9A-Za-z_.-]*$ is unclear and complex, go away and relearn regexes. Michael. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] (OT) Flame wars

2006-11-06 Thread Michael Sparks
aybe that's it) Anyway, if that's what people here think a flame war looks like... Well, a) I'll try and avoid such /mild/ comments in future ;) b) good for such people, real flame wars are really nasty ! Michael. ___ Tutor maillist - T

Re: [Tutor] Sloppy Code ?

2006-11-13 Thread Michael Lange
for what I want to do, > but I would > like to know if there's another way of doing things > import socket print socket.gethostname() I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] help with Tkinter, please

2006-11-23 Thread Michael Lange
which allows both. In case you want the output formatting done in the fact module, change the printFact() function, so that it *returns* a string instead of printing it to stdout, so you can use a callback like: def compute_fact(event=None): text.insert('end', fact.printFact(in

Re: [Tutor] How to make the label left justified in a frame

2006-11-23 Thread Michael Lange
> label_ed_time = Label(frame3,text='End Time:') > label_ed_time.grid(row=4) Hi Asrarahmed, sticky=W does put the labels to the frame's left side; the problem is that the frame's grid column does not expand beyond the reques

Re: [Tutor] help with Tkinter, please

2006-11-24 Thread Michael Lange
On Thu, 23 Nov 2006 13:08:40 -0800 Dick Moores <[EMAIL PROTECTED]> wrote: > >def compute_fact(): > > value = int(entry_get()) Ooops, sorry for the typo, of course it is entry.get() not entry_get() Michael ___ Tutor maillist -

Re: [Tutor] How to make the label left justified in a frame

2006-11-24 Thread Michael Lange
ght=0) f.grid_columnconfigure(1, weight=2) f.grid_columnconfigure(2, weight=1) column 0 will not expand at all when the frame is stretched horizontally, column 2 will expand and column 1 will expand even more. I hope this helps Michael ___

Re: [Tutor] help with Tkinter, please

2006-11-26 Thread Michael Lange
method? > It is certainly not impossible, as long as you do not mind creating a bunch of extra Frames, however to me this really sound like a job for grid() . You could simply use grid(row= , column=0, columnspan=2) for the widgets that should use the whole window's width an

Re: [Tutor] Getting the screen size....using Tkinter

2006-12-04 Thread Michael Lange
nheight() - height) / 3 - parent.winfo_vrooty() if x < 0: x = 0 if y < 0: y = 0 return '+%d+%d' % (x, y) If you replace self resp. self._hull with your window and pass the return value to a call of its geometry() m

Re: [Tutor] order of arguments in function

2006-12-06 Thread Michael Lange
fault min. Is there way to write > > def my_function(min=0, max): > stuff > def my_function(min, max=None): if max is None: max = min min = 0 # stuff I am not sure if this is more intuitive though. Michael

[Tutor] changing a variable over simple network (with pyOpenGL)

2006-12-06 Thread Michael Shulman
Hello, I am trying to write a very simple py-opengl program pair causing a variable in each program to be changed by the other. I am able to open a command window in which I manually assign a value to the variable, but I cannot seem to implement the udp/ip information I wish to send into a f

Re: [Tutor] order of arguments in function

2006-12-06 Thread Michael Lange
your example to def subtract(from_, what=0): return from_ - what the changed order of arguments seems quite intuitive to me. What I meant in the first place is that it might be "unintuitive" that if you pass only one argument this is the one that comes last in case you pass tw

Re: [Tutor] 'root' dir of a package from within the package ?

2007-01-09 Thread Michael Lange
; > I need to work out the path to the root directory from within the app, > os.path > gives me pythons path! - oh and its in XP. > > Any suggestions ? > Hi Dave, app_root = os.path.abspath(sys.path[0]) or, within the main executable .py file, app_root = os.path.abspath(os.path.dirna

Re: [Tutor] Change the font size of the lines and rectangle on aTkinter Canvas

2007-01-16 Thread Michael Lange
d window items cannot be scaled. If you want to "scale" text items, it might be the best to pre-define e.g. three pixel-sized fonts, like fonts = {'small':'helvetica -10', 'normal':'helvetica -12', 'big':'helvetica -14'} and then provide a callback that will both change the font size for the text elements and scale the graph elements (and the x- and y-axis). I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Change the font size of the lines and rectangle on aTkinter Canvas

2007-01-16 Thread Michael Lange
date() command to any widget. > Usually you don't need to as Tkinter figures out when > things have changed and updates itself, but > occasionally you may need to fo it manually. > Or, if you mean to change the toplevel's size, use Toplevel.configure(width=..., height=...)

Re: [Tutor] Can we add labels to tkinter canvas..?

2007-01-22 Thread Michael Lange
f text onto the canvas itself seems the best bet. > What would the lavbel do for you that a bit of text wouldn't? > Or put a label (or any other widget) onto the canvas using the create_window() method (though I don't know what's the benefit of a label over some te

Re: [Tutor] problem with canvas.postscript()

2007-01-23 Thread Michael Lange
an anybody help me to fix the problem..? > > Thanks in anticipation. > Have you tried to omit the pagex and pagey options, if you call postscript without any options (except filename) the whole canvas should be centered on the page. Michael __

[Tutor] Tracking time

2007-01-24 Thread Michael Key
I am trying to develop a project tracking program that would allow you to track hours and minutes spent on several different projects and store he data in a database for printing. Any help would be appreciated. Mike___ Tutor maillist - Tutor@python.

Re: [Tutor] Regarding licensing GPL terms

2007-01-31 Thread Michael Lange
want help choosing a license, evaluating a license, or have any other questions about licenses, you can email us at <[EMAIL PROTECTED]>. I hope this helps Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] same output on diferent sys.stdout.encodings

2007-02-08 Thread Michael Lange
is, keeping the more readable? > ___ Have you tried to declare the encoding in use at the top of your Python source file, like: # -*- coding: iso-8859-1 -*- If you put this at the first line of your .py file

Re: [Tutor] list problem

2007-02-21 Thread Michael Lange
t; is returning only one line, then you should be able to spot that in > the file. > Just a guess: if the behavior changed in between Python-2.3 and 2.5 , maybe it is an issue with line endings, LF vs. CR-LF ? Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Lamdas and locality

2007-03-03 Thread Michael Meier
Hello I ran the following code in python: >>> ls = [(lambda op: op + i) for i in [1,2,3]] >>> ls [ at 0xb7de4cdc>, at 0xb7de4d14>, at 0xb7de4d4c>] >>> for l in ls: ... print l(5) ... 8 8 8 >>> I am quite surprised of the result. I'm generating three lamdas. What I want to do is that

Re: [Tutor] Lamdas and locality

2007-03-04 Thread Michael Meier
Thanks for your answer and your workaround! There's always something to learn about lambdas and variable scope in Python ;) I'm sorry I didn't delete the quoted Tutor Digest part, it was a stupid mistake :( cheers, Michael ___

Re: [Tutor] Is generator function similar to multi threading?

2007-03-16 Thread Michael Sparks
ricted co-routine however is incredibly handy. (Because they can only be single layer, it forces them to be simpler, which in turn makes them much more reusable) Regards, Michael. -- http://kamaelia.sourceforge.net/Home http://yeoldeclue.com/blog

Re: [Tutor] The '45' bug in round()

2007-03-19 Thread Michael Hannon
On Mon, Mar 19, 2007 at 03:04:03AM -0700, Dick Moores wrote: > Yesterday I was shocked, SHOCKED, to discover that round() is > occasionally rounding incorrectly. For example, > > >>> print round(0.19945,4) > 0.1994 . . . > Comments, Tutors? Am I way out in left field with this? I suggest you m

Re: [Tutor] The '45' bug in round()

2007-03-20 Thread Michael Hannon
On Tue, Mar 20, 2007 at 04:09:49AM -0700, Dick Moores wrote: > At 11:00 AM 3/19/2007, Michael Hannon wrote: > >On Mon, Mar 19, 2007 at 03:04:03AM -0700, Dick Moores wrote: > >> Yesterday I was shocked, SHOCKED, to discover that round() is > >> occasionally roundi

Re: [Tutor] The '45' bug in round()

2007-03-20 Thread Michael Hannon
On Tue, Mar 20, 2007 at 09:03:43AM -0700, Dick Moores wrote: . . . > >Well, perhaps this is something for me to think about, but if you had asked > >me to round 0.19945 to four decimal places, I would have told you the > >answer > >is 0.1994, i.e., the same answer that Python gives. > > Is this b

Re: [Tutor] My Python project - an update

2007-03-28 Thread Michael Sparks
ated with a repeatable method, after that things generally get worse not better. Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Idle

2008-03-14 Thread Michael Connors
nction as follows: y = randrange(1,n) Regards, -- Michael Connors ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] [TUTOR] Stupid Pythony Newbie Question: Basic Operators;

2008-03-16 Thread Michael Lim
Sorry guys, this is a newbie question... can someone please help me with what the following 2 basic operators do in like simple english: 1. ^ 2. % ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] newbie needs help with rpg code in python

2008-03-16 Thread Michael Langford
import random random.randrange(a, b) Where it will give you an integer of at least a and less than b. So in your case, you could do temp_e_hp -= random.randrange(damage_to_enemy * 0.80 ,damage_to_enemy * 1.2) Which will do between 80-120% the damage_to_enemy to the enemy. --Michael

Re: [Tutor] newbie needs help with rpg code in python

2008-03-16 Thread Michael Langford
e, you shouldn't hard-code values like 0.8 and 1.2 - but I wanted to > keep it simple. --Michael -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/ma

Re: [Tutor] login

2008-03-16 Thread Michael Langford
; > > values = urllib.urlencode({'user_name': 'MyUsername', > 'user_pass': > > 'MyPass^^', 'login' : 'Login'}) > > req = urllib2.Request('http://www.site.org/index.php', values) > >

Re: [Tutor] python, wxpython and postgresql

2008-03-18 Thread Michael Langford
have something more sophisticated: http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi/11 --Michael On Mon, Mar 17, 2008 at 7:31 PM, Bill Mais <[EMAIL PROTECTED]> wrote: > Hey, I thought programming was all about the shortcuts ;-) > > I'm sorry to not be clear. I've

Re: [Tutor] Python learning curve

2008-03-18 Thread Michael Langford
ary of their graphic toolkit 3. Then try to work on the actual code base. --Michael And on whether you do it or not for freeI'd say python is the language that has the most accessible libraries I've ever seen. I literally can use any C, C++ or Fortran library with it

Re: [Tutor] Using pyusb

2008-03-19 Thread Michael Langford
e. This will at least tell you where the endpoints are that you maybe could be communicating over. Please check your control panel or the command line utils (or /proc device) that tells you this info, as well as where you're stuck before we can help you more. --Michael PS: I would have lo

Re: [Tutor] Using pyusb

2008-03-19 Thread Michael Langford
Btw, the win32 version of libusb is not maintained anymore, and bogus in my experience. I didn't really get to use libusb much on linux, but it seemed to get a descriptor at least. IIRC, they were upset with their interface and in the middle of vastly changing it. --Michael On Wed, M

Re: [Tutor] Python to C++

2008-03-19 Thread Michael Langford
ttp://mail.python.org/mailman/listinfo/tutor > > -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Using pyusb

2008-03-20 Thread Michael Holloway
I hope I'm using this system correctly by just hitting reply-all in my email client :s Thanks very much Michael, I've been a bit thin on the other details I see. My platform is Mac Os 10.4, I'm using USB snooper to get the data I need, I'll post it at the end of this messag

Re: [Tutor] cross-compile python?

2008-03-24 Thread Michael Langford
Cross compiling python isn't easy. Follow what this blogger did to get started, then ask when you get stuck. http://whatschrisdoing.com/blog/2006/10/06/howto-cross-compile-python-25/ --Michael On Mon, Mar 24, 2008 at 1:04 AM, Trey Keown <[EMAIL PROTECTED]> wrote: > Hey

Re: [Tutor] decimal precision

2008-03-25 Thread Michael Connors
___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > I think to do float division the operands should be floats. So if you do: print float(a-x) / float(w) It s

Re: [Tutor] decimal precision

2008-03-25 Thread Michael Connors
___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > I think to do float division the operands should be floats. So if you do: print float(a-x) / float(w) It s

Re: [Tutor] decimal precision

2008-03-25 Thread Michael Connors
On 25/03/2008, elis aeris <[EMAIL PROTECTED]> wrote: > > what if i want it only to 2nd decimal? > > what if i want to cut off everything behind decimal? > In: print "%.2f" % (0.99) Out: 0.99 http://docs.python.org/lib/typesseq-s

Re: [Tutor] Let imported module access calling program

2008-03-25 Thread Michael Langford
tion == "LEFT": turnLeft() else: turnRight() def robotSetup(): """sets all the event handlers and defines the operational program""" #these will happen as things generate events registerEventHandler(SONAR_EVENT,handleSonarData) regis

Re: [Tutor] Table like array in Python

2008-03-26 Thread Michael Connors
and values. So you could do something like this: records = {'US': {'2007': 22.5, '2008': 44.8}, 'UK': {'2008': 3.4, '2007': 2.6}} You can now access a particular record as follows: In: print records['UK']['2007']

Re: [Tutor] Interactive plots...

2008-04-01 Thread Michael Langford
reply. You can make the following nicer by rewriting the click command, and you can probably find a way to make tkinter hide the empty circles or use a different toolkit to implement the same idea. You should be able to put an X axis in to show time or whatever dimension your data is over. --Mi

Re: [Tutor] Problem with logic while extracting data from binary file

2008-04-01 Thread Michael Langford
pointless, as you unconditionally return from it. --Michael def basicFields(data,start): group_num = data[start:start+2] element_num = data[start+2:start+4] vl_field = data[start+4:start+8] length = struct.unpack('hh', vl_field)[0] value = data[start+8:(start+8+length)]

Re: [Tutor] Question about Python ORM

2008-04-02 Thread Michael Langford
daloneZODB --Michael On Wed, Apr 2, 2008 at 7:25 AM, Andreas Kostyrka <[EMAIL PROTECTED]> wrote: > There are many as you said yourself. Recommendation: sqlalchemy.org > > Andreas > > Am Mittwoch, den 02.04.2008, 16:51 +0530 schrieb hiren kumar: > > Hi, > >

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Michael Langford
just plain die when they hit an environment where they don't have one (due to time, money, location, or whatever). Btw, if people know of good IDE's other than PIDA that are free, run on windows and linux and allow use of VIM as the editor, please let me know. --Mic

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-03 Thread Michael Langford
When you have you use Visual Studio, I suggest using the beautiful and wonder ViEmu. Best $90 I ever spent: http://www.viemu.com/ On Thu, Apr 3, 2008 at 2:40 PM, W W <[EMAIL PROTECTED]> wrote: > On Thu, Apr 3, 2008 at 12:15 PM, Michael Langford > <[EMAIL PROTECTED]> wrote: &

[Tutor] glade integration

2008-04-07 Thread Michael Miesner
Hi- I am totally new to python and I cant figure out how to integrate a glade file into a python file. Is it as simple as referencing the glade file, or must the XML code from the glade file be copied in? Sorry to ask such a basic question. ___ Tutor mail

Re: [Tutor] glade integration

2008-04-07 Thread Michael Langford
While on the topic of glade, does anyone know of a working gui builder for glade on windows? WinGlade appears to have been linkjacked or hacked. --Michael On Mon, Apr 7, 2008 at 11:07 AM, tannhauser <[EMAIL PROTECTED]> wrote: > On Mon, 07.04, 09:48, Luke Paireepinart wrote: &g

Re: [Tutor] glade integration

2008-04-07 Thread Michael Langford
Well there you go. Just needed to look elsewhere: http://sourceforge.net/project/showfiles.php?group_id=98754 On Mon, Apr 7, 2008 at 1:59 PM, Michael Langford < [EMAIL PROTECTED]> wrote: > While on the topic of glade, does anyone know of a working gui builder for > glade on windo

Re: [Tutor] glade integration

2008-04-07 Thread Michael Langford
I've also tried to use XRCed, but it crashes more often then a paper airplane, at least on Windows Vista. (XRC files are a XML layout manager interface that can be loaded by wxPython to separate GUI from code). If anyone knows a nice XRC builder, that would suffice. --Michael

[Tutor] Text editing

2008-04-10 Thread Michael Schultz
Hello everyone. I'm looking to build a cross-platform "writer's assistant", and I figured my first step would be to re-invent the wheel, er I mean built a simple rich-text editor as a base. I'm trying to figure out the simplest way to do so, and figured I'd ask if anyone knew some good resources t

Re: [Tutor] python access of usb for winxp

2008-04-10 Thread Michael Langford
Libusb on windows, which pyusb depends on, is somewhat lacking the last time I tried. Seems like libusb on win is abandoned. --Michael On Thu, Apr 10, 2008 at 2:42 PM, govind goyal <[EMAIL PROTECTED]> wrote: > Hello, > I want to retreive data to and fro USB device attached/con

[Tutor] Open url in browser window

2008-04-14 Thread Michael Finlayson
in javascript with the onClick="MM_openBrWindow command) 2. Control of the user’s keyboard. Obviously, these are both temporary and functionality is restored upon exiting the training. Thank you for your input. Michael Finlayson No virus found in this outgoing message. Check

[Tutor] HELP!!!!!

2008-04-17 Thread Michael Kim
Hi I am having a really hard time making my tictactoe program work. I was wondering if you could could check it out and help me with the error. Thanks blank = " " def asknumber(question, low, high): response = None while response not in range(low, high): response = int(raw_

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Michael Langford
Office VBA is pretty much the same objects as the Office COM object. You use the same for both, so probably can do it in python very close to the same speed as vba --Michael On Wed, Apr 16, 2008 at 1:48 PM, Marc Tompkins <[EMAIL PROTECTED]> wrote: > Again with the forgetting

Re: [Tutor] Python Best Practice/Style Guide question

2008-04-29 Thread Michael Langford
). Steve McConnell's Code Complete has an excellent chapter on this and other "whitespace code art" that basically boils down to while it seems like it adds, it takes a lot of time to maintain, so you're probably not coming out ahead in the long run. --Michael On Tue, Apr

Re: [Tutor] Memory Leak?

2008-05-07 Thread Michael Langford
You can always make a subclass of the classes you're thinking aren't being garbage collected and put a print statement in their __del__ functions to show you when they are. That will show you if/which objects aren't being deleted. Do you have any global variables? --

Re: [Tutor] Memory Leak?

2008-05-08 Thread Michael Langford
n), your program runs > faster if it avoids creating cyclic garbage in the first place > > Yes is it reliable if you are intending to have non-cyclic data in the first place (which has no chance of no being gc-ed). This sounds like his use case.

Re: [Tutor] regex newbie question

2008-05-09 Thread Michael Janssen
' >>> mt.group(1) Traceback (most recent call last): File "", line 1, in ? IndexError: no such group the benefit of such a non-group is, that it's clear for the reader, that you're not intending to use the submatch later on and it keeps mt.group(*) clean. When I firs

Re: [Tutor] pyUSB linux + unknown device

2008-05-13 Thread Michael Langford
This should get you started. You're need to go to figure out your data format, and you're going to need to go through the data, most likely with a snooper. http://www.nabble.com/Using-pyusb-td16164343.html --Michael On Mon, May 12, 2008 at 8:03 PM, Downbound <[EMAIL PROT

[Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Michael yaV
on for web apps? Thank you for any help. Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Michael yaV
seemed to offer all I was looking for, plus, I have been told, it is rather easy to learn. Why? Michael On May 28, 2008, at 2:04 PM, wesley chun wrote: Where should I begin/go to learn how to create web apps using Python? I would like to create a dynamic "content managed" website an

Re: [Tutor] I am a web designer wanting to learn Python

2008-05-28 Thread Michael yaV
Thanks... I have my-work-cut-out-for-me. Michael On May 28, 2008, at 3:50 PM, wesley chun wrote: I have been wanting to learn a language for the last 10 years, I am now just getting around to it. I did some research on languages, because I decided if I was going learn one, I wanted to learn

[Tutor] How to Think Like a Computer Scientist...

2008-06-03 Thread Michael yaV
to make sure i am getting the right answers the correct way? Thanks for any help, Michael ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] __del__ exception

2008-06-05 Thread Michael Langford
int 'population = %d' %Person.population cls = Person p = Person('Jean') d = Person('Michael') --Michael On Thu, Jun 5, 2008 at 4:14 PM, Blaise Morose <[EMAIL PROTECTED]> wrote: > Hi, > > I have this silly piece of code that I am experimenting with:

Re: [Tutor] Why not to use include?

2008-06-08 Thread Michael Langford
gets-right/ --Michael On Sun, Jun 8, 2008 at 3:14 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > 2008/6/8 Andreas Kostyrka <[EMAIL PROTECTED]>: >>> Very little of the pages are PHP, most is HTML. I understand that >>> Python can be used as a web scripting language, so I

Re: [Tutor] Controlling applications

2008-06-09 Thread Michael Langford
: > every weakness, every vice, has found its defenders, its rhetoric, its > ennoblement and exaltation, but stupidity hasn't. - Primo Levi > _______ > Tutor maillist - Tutor@python.org >

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
How about for the Mac platform? On Jun 10, 2008, at 8:26 AM, Alan Gauld wrote: "Sean Novak" <[EMAIL PROTECTED]> wrote I'm looking for the perfect IDE, preferably open source. Aren't we all! :-) We used to have editor wars, now its IDE wars... someone has tried a few different IDEs and fo

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
Thanks. What do you think of IDLE? On Jun 10, 2008, at 11:39 AM, Hansen, Mike wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael yaV Sent: Tuesday, June 10, 2008 8:45 AM To: Alan Gauld Cc: tutor@python.org Subject: Re: [Tutor] IDE How

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
Since I'm on a mac, how about using Xcode? On Jun 10, 2008, at 2:07 PM, Kent Johnson wrote: On Tue, Jun 10, 2008 at 1:30 PM, Michael yaV <[EMAIL PROTECTED]> wrote: Thanks. What do you think of IDLE? It's primitive. Kent __

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
Thanks, I'll give it look. On Jun 10, 2008, at 2:48 PM, Wim De Hul wrote: What about Wingware, I use Wingware professional at ork and the free version at home. Here's the link: http://www.wingware.com Cheers! Wim On 10 Jun 2008, at 20:13, Michael yaV wrote: Since I'

[Tutor] wanting to learn

2008-06-11 Thread Michael yaV
A little background on myself. I am a web designer so I am a Mac person. I have taught myself HTML and flash by reading manuals and a lot of trial and error over the last 11 years. I have always wanted to learn a language like php, asp, .net but I never took the time to learn them. I have r

Re: [Tutor] ooffice UNO to generate automatic powerpoint presentations

2008-06-13 Thread Michael Langford
Quicktime's Com API does something similar to this. But nothing with PPT files, no. --Michael On Fri, Jun 13, 2008 at 10:28 AM, Mark Alexiuk <[EMAIL PROTECTED]> wrote: > Hi, >I want to be able to generate Windows powerpoint presentations by > throwing

[Tutor] need help; save web data

2008-06-28 Thread Michael Miesner
, but I dont know how to begin to get python to grab the output of a given search on google scholar and save it to a file. Thanks for all your help. Michael -- Michael Miesner PHDC in Clinical Psychology East Tennessee State University ___ Tutor

Re: [Tutor] Question about string

2008-07-03 Thread Michael yaV
This is in the " Snake Wrangling For Kids" Learning to Program with Python by Jason R Briggs Thought this would help. Michael What’s the difference between 10 and ‘10’? Not much apart from the quotes, you might be thinking. Well, from reading the earlier chapters, you know that th

Re: [Tutor] Python Characteristics.

2008-07-09 Thread Michael Langford
shell (if that's what you're looking for) by using ipython: http://ipython.scipy.org/ A large percentage of python developers use IPython (the I stands for interactive, I think). -- Michael Langford Phone: 404-386-0495 Consulting: http://www.RowdyLabs.com ___

<    1   2   3   4   5   6   7   8   9   >