Re: Weakref.ref callbacks and eliminating __del__ methods

2005-01-24 Thread Mike C. Fletcher
Tim Peters wrote: [Mike C. Fletcher] I'm looking at rewriting parts of Twisted and TwistedSNMP to eliminate __del__ methods (and the memory leaks they create). A worthy goal! Well, as of now it seems to have eliminated the last leaks in TwistedSNMP, and that's likely going to

Re: PyCon signature advertising

2005-02-01 Thread Mike C. Fletcher
of the new continents when the spring arrives. It is only there that all will be revealed. It is only there that you shall find peace. Joy to the Python world! Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http

Re: "Collapsing" a list into a list of changes

2005-02-04 Thread Mike C. Fletcher
list(changes(data )) which is quite readable/elegant IMO. Have fun, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com PyCon is coming... -- http://mail.python.org/mailm

Re: Proposal: reducing self.x=x; self.y=y; self.z=z boilerplate code

2005-07-02 Thread Mike C. Fletcher
r) and BasicProperty packages, as well as in Traits (originally part of a 2D graphics package), and Zope's FieldProperty (and PEAK, though as always with PEAK, it's somewhat weird in there ;) ). All of those are largish systems (or used in largish systems), btw. Just my thoughts, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Frankenstring

2005-07-12 Thread Mike C. Fletcher
;first list', l1 print 'second list', l2 If you want to speed it up, you can optimise for various string sizes (eg using a slice of the string and the built-in iterator when appropriate), but in the end, it's not going to be anywhere near as fa

Re: Fire event when variable is Set/Get

2005-07-24 Thread Mike C. Fletcher
ly depends on whether you normally want to filter by one or the other). The OpenGLContext vrml scenegraph has PyDispatcher-sending fields built-in if you want to see a real-world use. (We have others which use BasicProperty + PyDispatcher, but they

Re: Selection, picking with PyOpenGL?

2005-07-30 Thread Mike C. Fletcher
nameStack and a registered set of name:node values (self.selectable). It will use those to populate the event objects that show up in the OpenGLContext mouse-event-handling APIs. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Co

Re: Metaclasses and class variables

2005-08-04 Thread Mike C. Fletcher
s, name, bases, dictionary ): dictionary[ 'classvar' ] = cls.newClassVar[:] del cls.newClassVar[:] return super( meta, cls ).__new__( cls, name, bases, dictionary ) __metaclass__ = meta classvar = meta.newClassVar or something along those lines... Um, ick, but HTH, Mi

Re: PyOpenGL

2005-08-10 Thread Mike C. Fletcher
s between points. If it's a regular x,y grid, you can readily construct the polygons, if not, you get into something a little more fuzzy. Good luck, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator and Metaclasses Documentation

2005-08-21 Thread Mike C. Fletcher
r.com/programming/ Though the don't go into extreme detail on decorators (they are basically syntactic sugar for a particular type of descriptor). HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com htt

Re: Decorator and Metaclasses Documentation

2005-08-22 Thread Mike C. Fletcher
bruno modulix wrote: >Mike C. Fletcher wrote: >(snip) > > >>Though the don't go into extreme detail on decorators (they are >>basically syntactic sugar for a particular type of descriptor). >> >> >> >Err... Could you elaborate on this ? Dec

Re: python image thumbnail generator?

2005-08-27 Thread Mike C. Fletcher
* generate images for sources that don't yet have (or are newer than) their thumbnail you should be fine. >(4) Am I talking about re inventing the wheel? > > Probably. ZPhotoSlides (a Zope product) provides thumnailing, slideshows and the like, probably closer to what you'd want fo

Re: Pointers and ctypes

2005-08-29 Thread Mike C. Fletcher
e version of ctypes in CVS HEAD will allow you to pass in a c_ulong where the argtype is ctypes.POINTER(c_ulong). Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: File parser

2005-08-30 Thread Mike C. Fletcher
tried various parsing tools and EBNF grammars but VB6 >isn't really an EBNF-esque syntax in all cases, so I needed something >else. > ... You may find this project interesting to play with: http://vb2py.sourceforge.net/index.html Have fun, Mike --

Re: Has anybody tried to make a navigation like Google?

2005-09-05 Thread Mike C. Fletcher
JOIN voip.voipaccount USING (voipaccount_id) %(wheres)s %(orders)s %(limits)s """) The UI then offers the user the ability to increase offset (page forward), decrease offset (page backward), and re-sort (change the ordering fields). You disable the paging if you've reached either end of the record-set (offset<0 offset >= total-1), obviously. Anyway, hope that helps, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: improvements for the logging package

2005-09-13 Thread Mike C. Fletcher
priate if we're worried about emulation by users. Anyway, I realise Skip probably was using "in Py3K" in the "some unimaginably far-off time" sense, but just in case he wasn't I felt I should pipe up... Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: 64 bit Python

2005-02-14 Thread Mike C. Fletcher
be problems with creating an individual string of multiple GB as well, for the same reason. Just an idea, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com

Re: Probably over my head... Trying to get Font Names

2005-02-17 Thread Mike C. Fletcher
ing their metadata in an index for faster access, whereas your GUI library will be using a simple API call to retrieve the metadata. That means TTFQuery is going to be heavier, but it can, for instance, also give you information about fonts not installed on the system. HTH, Mike TTFQuer

Re: 3d graphics

2005-02-18 Thread Mike C. Fletcher
hics engine) written with Python as the primary implementation language (for the graphics engine). Of the retained-mode renderers on that page, only a handful are primarily Python code; it takes a lot of work to get a decently performing scenegr

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Mike C. Fletcher
[Samantha: your email has been bouncing, might want to clear your inbox] Samantha wrote: Thanks Mike. I must have not installed the ttfquery and font tools correctly. I get an error. This error: ... ImportError: No module named fontTools Like I said I think I am way in over my short head. S

Re: Probably over my head... Trying to get Font Names

2005-02-18 Thread Mike C. Fletcher
Samantha wrote: Mike, Not sure why that email bounced. That last one bounced too, btw. I downloaded these files: WinTTX2.0b1.exe TTFQuery-1.0.0.win32.exe numarray-1.1.1.win32-py2.4.exe They all seemed to install. Is WinTTX2.0b1.exe not the fontTools file? I believe WinTTX is a font-editing

Re: yield_all needed in Python

2005-03-01 Thread Mike C. Fletcher
ppens with: [ for yield from foogen1(arg3) ] would then have to be defined... that might make it too complex an change. Oh well. Have fun all, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com

Re: Python becoming less Lisp-like

2005-03-15 Thread Mike C. Fletcher
When you have metaprogramming to do, it is *such* a relief when you can get it done in Python without resorting to C. Have fun all, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com

Re: graphics

2004-11-28 Thread Yet Another Mike
You'll need wxPython. Once you get that, look in the samples for pySketch. This is a very straightforward program that helped me learn a lot about GUI with wxPython. Pretty easy to do. Once you get a hang for the basics, then you might be interested in wxGlade, an interactive GUI designer. wxGl

Re: Help With Hiring Python Developers

2004-12-05 Thread Yet Another Mike
"Ed Leafe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Allow offsite workers and you'll have all the candidates you want. > > Exactly. I'm 5 hours away in Rochester, NY, and might be interested And, if they are willing to go offsite, why not go to India and save lots of bucks?

Re: 3D plotting library / OpenGL

2004-12-07 Thread Mike C. Fletcher
on *isn't* it's focus, so one of the items from the science category might be more appropriate. Anyway, HTH, Mike Andrew Dalke wrote: I've been looking for a decent 3D plotting library with support for user selection that works under OpenGl, preferable with wxPython. ... What I was

Re: [Newby] Problem with compilation.

2004-12-09 Thread Mike C. Fletcher
There is a work-alike cross-platform "fcrypt.py" module which can be used to replace crypt on non-unix platforms. Google to find it. HTH, Mike j vickroy wrote: The Python modules documentation indicates crypt is only available on Unix

Re: Compiling Python 2.4 extensions with free VC++ Toolkit

2004-12-10 Thread Mike C. Fletcher
Jody Burns wrote (with Peter): See Mike C. Fletcher's post and http://www.vrplumber.com/programming/mstoolkit/ for a way to do it very easily (you have to be able to use the GNU patch tool, but that's not difficult at all). --Jody ... not been able to get into hacking on the core

Re: building python extensions with .net sdk compiler?

2004-12-11 Thread Mike C. Fletcher
ude a vcvars32.bat that sets appropriate ones) if the VS lookup failed. Which is what the patch here: http://www.vrplumber.com/programming/mstoolkit/ does. Have fun, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com

Re: Step by step: Compiling extensions with MS Visual C++ Toolkit 2003 - msvccompiler-patch.txt (0/1)

2004-12-15 Thread Mike C. Fletcher
Martin Bless wrote: ... Two things first - not to forget: (1) In contrast to what Mike writes I had to use a different registry key (see step 9) Which is expected (even noted on the page), particularly if you have a different version of the SDKs. The keys in the patch were extracted from an

Re: Compiling Python 2.4 extensions with free VC++ Toolkit

2004-12-10 Thread Mike C. Fletcher
ls to look in the environment for them). Have fun, Mike BTW, what is with that funky 7-person garbage "From:" list in your message header? Some messed-up attempt at spam-catching? Rather annoying in Thunderbird, as it generates 7 garbage "To" headers when d

Re: save an opengl canvas (wxPython)

2004-12-14 Thread Mike C. Fletcher
ixels.3G.xml see the end of that man page for pointers to Python sample code. Good luck, Mike Zunbeltz Izaola wrote: Hi, I've a drawing made in an OpenGL canvas. I want to save it to a file (preferibly PostScript format). Somebody knows h

Re: python & nurbs

2004-12-19 Thread Mike C. Fletcher
where you'd find it. Many 3D modelers will let you create nurbs surfaces. IIRC Rhino was the pre-eminent NURBs-focused modeler a few years ago. Good luck, Mike ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://b

Parallelization with Python: which, where, how?

2004-12-21 Thread Mike M?ller
nd use and has been working well for me for more than 2 years. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabnanny really useful?

2004-12-21 Thread Yet Another Mike
, the compiles could bring everyone else to a crawl. Lint was used because it was a less-CPU intensive way to catch bonehead errors and fix them before using precious compile time. Today,lint and Tabnanny may still have their uses as noted by others to cleanup the tab/space conundrum. -- Mike &

Re: list IndexError

2004-12-22 Thread Mike C. Fletcher
cted results, but they are generally not going to raise IndexErrors due to off-the-end-of-the-list operations). Good luck, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: list IndexError

2004-12-22 Thread Mike C. Fletcher
s code is so clean and looks very healthy. :) Python will live a long way because its a cute language. :-) Cute is, of course, the highest praise to which any man, woman or language can aspire :) . for index in xrange( len(source)-1, -1, -1 ): if source[i] == 'e': del

Re: list IndexError

2004-12-23 Thread Mike C. Fletcher
Fredrik Lundh wrote: Mike C. Fletcher wrote: yeah actually i saw what Fedrik had to say above. I created a sliced copy of the l & did my homework within the for loop You might want to check it again before you hand it in ;) ... ... that's not the code he quoted in the

Re: twistedSnmp and hexadecimal values ...

2005-03-30 Thread Mike C. Fletcher
n artefact of how we store and process the results of the TwistedSNMP queries, not TwistedSNMP itself. BTW, more detail in a question (what result you got, what result you expected, what you did to get the result) is generally a good idea. HTH, Mike

Re: Newbiw - PypenGL and OpenGLContext

2005-03-30 Thread Mike C. Fletcher
o explicitly return this""" return self.sg if __name__ == "__main__": MainFunction( TestContext ) There are other retained-mode/scenegraph engines available besides OpenGLContext, you can find a listing of some of them here: http://www.vrplumb

Re: Extracting Font Outline informations

2005-04-04 Thread Mike C. Fletcher
TTFQuery, built on top of FontTools, allows you to do this. You can see use of the extraction in the OpenGLContext/scenegraph/text package, which uses TTFQuery to implement 3D text rendering. http://ttfquery.sourceforge.net/ http://pyopengl.sourceforge.net/context/ HTH, Mike Gabriele *Darkbard

Re: preallocate list

2005-04-13 Thread Mike C. Fletcher
he out-of-favour functional form for the mapping. Good luck, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Any movement on FreeBSD segfaults when using threads?

2005-04-18 Thread Mike C. Fletcher
eactor.callFromThread returning control to Twisted when the items are finished. Anyway, my question is really "has this been solved already"? If so, what was the solution? If not, I'll have to work at building a minimal failing test case so I

Re: Python Object Systems

2014-08-11 Thread Mike C. Fletcher
few dozen more "object systems" out there. You'll also likely find about a thousand metaclasses these days. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- h

Re: logging: warn() methods and function to be deprecated.

2011-10-24 Thread Mike C. Fletcher
ce my post here, to get feedback from logging users about this proposed > change. I actually consider .warning() a nit :) . After all, it's 3 extra characters :) , and *who* actually reads documentation instead of just poking around and finding the shortest-

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
On 11-10-26 05:12 AM, Vinay Sajip wrote: > Mike C. Fletcher vrplumber.com> writes: > >> I actually consider .warning() a nit :) . After all, it's 3 extra >> characters :) , and *who* actually reads documentation instead of just >> poking around and finding

Re: logging: warn() methods and function to be deprecated.

2011-10-26 Thread Mike C. Fletcher
se you could just use the logging key as well as a piece of data. I'll withdraw the suggestion that it is not a trivial thing to add to 2to3, though I'll leave the implementation to someone else. Have fun, Mike -- ____ Mike C. Fletcher Desi

Re: memory leaks - tools and docs

2011-11-24 Thread Mike C. Fletcher
eliae dumps to produce visualizations of the memory used in the process. HTH, Mike https://launchpad.net/meliae http://www.vrplumber.com/programming/runsnakerun/ -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://

Re: subprocess module and long-lived subprocesses

2012-01-20 Thread Mike C. Fletcher
some reason the process isn't reading your input fast enough). I think everyone winds up with their own wrapper around subprocess after they use it for more than a short period... HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PyOpengl text rendering with autocad font

2005-12-15 Thread Mike C. Fletcher
r is asking for .shx will allow it. >If somebody wants to help me :-) >Thanks. > > HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Limiting the size of List and making it Homogeneous

2006-01-13 Thread Mike C. Fletcher
?view=markup Note, however, that if you goal is to create a simple C-level pointer of machine ints you'll need to use Numpy or a similar system that implements such a type. Have fun, Mike ankit wrote: >Is it possible to limit the size of list in python. >I want to make list of 5 el

Re: Extracting results from a large hotshot profile

2006-01-16 Thread Mike C. Fletcher
le that actually does the incremental loading, you could use that to produce a view by writing code to display the results statically. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting results from a large hotshot profile

2006-01-16 Thread Mike C. Fletcher
lso be cases where a recursive call to the interpreter gets a whole separate stack... or maybe there's something going on with threads intermixing to create greater depth. Let me know if that helps, Mike -- Mike C. Fletcher Designer,

Re: 3D Vector Type Line-Drawing Program

2006-10-10 Thread Mike C. Fletcher
up to get a reasonable result that would support more graphics features (maybe). Generally what you get out of these things, however, is a quite fragmented view of your objects (that is, you get the triangles that would be rendered). That *can* be coded

Re: Beginner Python OpenGL difficulties

2006-05-29 Thread Mike C. Fletcher
S that are waiting for me to get my posterior in gear with Win32 testing to be released. Not sure if that would change anything for you, though. Good luck, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: simpleparse parsing problem

2006-09-02 Thread Mike C. Fletcher
gt; expr:= termlist, ( operator, termlist )+ > I *believe* you wanted that to be *, not + Best way to write a SimpleParse grammar is from the ground up, using test cases, so test each thing you think you're parsing. Makes it much easier to spot situations like this. HTH, Mike -

Re: does anybody earn a living programming in python?

2006-09-26 Thread Mike C. Fletcher
are putting together today in all those big institutions. Have fun, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: "fork and exit" needed?

2006-11-30 Thread Mike C. Fletcher
python which is how Linux knows what interpreter to use for the script. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: pyopengl glShaderSourceARB error

2006-12-09 Thread Mike C. Fletcher
s/shaderobjects.py?view=markup The key information you seem to be missing are that the Python version has a simpler API and that you have to pass an array (list) of strings, not just a single string to the compilation function. The count and length (arr

Re: Metaclass uses?

2006-12-15 Thread Mike C. Fletcher
> Can anyone help me understand how metaclasses can improve the quality > of my code and let me do better things. > My presentation from three pycons ago was an attempt to address this issue (what metaclasses are useful for): http://www.vrplumber.com/programming/me

Re: Traceback of hanged process

2007-01-08 Thread Mike C. Fletcher
You can also use the signal module to similar effect. Works well in Twisted, at least: http://blog.vrplumber.com/835 HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenGL

2006-01-22 Thread Mike C. Fletcher
PyOpenGL these days is focusing on the OpenGL-ctypes implementation, which hopefully will let far more people work on the source-code (and add features and coverage of more extensions). Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumb

Re: OpenGL

2006-01-22 Thread Mike C. Fletcher
l the system how to do basic operations; get an array's size, shape, data-type, convert to a given data-format, build an "empty" array of a given size, that kind of thing. I haven't written a numarray one yet, but it should be a fairly trivial change from the Numpy/scipy-core

Re: Collecting snmp data - threads, processes, twisted?

2006-02-07 Thread Mike C. Fletcher
devices you'll likely want to batch the queries into ~ 200 simultaneous queries and/or use multiple protocols (gives you more OS-level buffering). Have fun, Mike Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com htt

Re: Where do they tech Python officialy ?

2007-07-23 Thread Mike C. Fletcher
d suggest just learning "normal" Python first, *then* moving onto the hardcore stuff. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Call for advice on how to start PyOpenGL!

2007-08-20 Thread Mike C. Fletcher
files has been broken for a while and I haven't had time to fix it properly so I can re-run the generator to update the links. In the meantime, Google's code search helps a lot when you restrict to Python code.[3] HTH, Mike [1] http://nehe.gamedev.net [2] http://sourceforge.net/projec

Re: Question: wxpython and 3d engine example with model load ?

2007-08-23 Thread Mike C. Fletcher
get panda3d and wxPython working together I don't see a soya + wxPython page in a few seconds of googling, so I guess finding that is left as an exercise for the reader. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vr

Re: Python GUI + OpenGL

2007-03-02 Thread Mike C. Fletcher
se the system no longer requires binary versions. Install the setuptools package, then run easy_install PyOpenGL and the egg file should be downloaded and installed to your machine. The current version doesn't package GLE along with the code, however, so you

Re: interpreting glyph outlines from ttfquery?

2007-03-22 Thread Mike C. Fletcher
t the whole thing to a consistent array with numpy.array (or Numeric.array). That is, the 's' is just an artefact of how the calculation was done, the values are all 2-element coordinates, some as Python tuples, some as 2-element Numeric/numpy "short" arrays. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PyDispatcher question

2007-04-05 Thread Mike C. Fletcher
f it explicitly, and that's what keeps the object "live" and receiving signals if you try the code in the shell. PyDispatcher is designed so that, by default, when the object goes away the registration is removed. It uses the weakref module to do this,

Re: Understanding Python's interpreter

2007-04-07 Thread Mike C. Fletcher
thon-list, and new compiler writers are just as important educational targets as new Python programmers. Have fun, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.

Re: TwistedMatrix missing OpenSSL?

2007-10-05 Thread Mike C. Fletcher
Lamonte Harris wrote: > Where can I get it? Anyone got any idea? http://www.voidspace.org.uk/python/modules.shtml#pycrypto Might help. Mike > > Where do I get it? I'm currently running python 2.5 > > On 10/4/07, *Lamonte Harris* <[EMAIL PROTECTED] > <mai

Testing a website with HTTPS login and cookies

2007-02-06 Thread Dwyer, Mike # ATLANTA
Did you ever get a response to your posting on "Testing a website with HTTPS login and cookies"? The reason I ask is that I need to do a similar thing, and am not being very successful getting pointers or sample code. Any response appreciated. /mike -- http://mail.python.org/mailma

Re: pygame and python 2.5

2007-02-09 Thread Mike C. Fletcher
pes :) . For example, pygame-ctypes[1] should work on Python 2.5. Of course, you need to get the PyGame dependencies (SDL) installed via some external mechanism, but the ctypes-based code should run in Python 2.5 today (with the caveat that it's not finished software). [1] http://www.pygame.o

Re: Saving PyOpenGl figures as ps

2007-02-11 Thread Mike C. Fletcher
ing an off-screen buffer (pbuffer or MESA) for the rendering, which may (depending on implementation) allow for higher resolutions. If you want a true vector graphic (PS, EPS) you'll need to use something like GL2PS. http://www.geuz.org/gl2ps/ HTH, Mike -- _

Re: Dlls

2007-02-18 Thread Mike C. Fletcher
ers to use those "raw" functions, but they should work perfectly well. That is, you have to pass the right data-type, but then you'd have to do that in assembler too. Have fun, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: dependency algorithm

2007-11-14 Thread Mike C. Fletcher
ut that's pretty trivial to change. Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Screen Shots?

2007-12-04 Thread Mike C. Fletcher
> > Any help would be greatly appreciated If you are using Pygame (you don't say which GUI library you are using), you can draw the mini-map into a surface and then re-blit the surface to the screen each time you want to display it. HTH, Mike -- ___

Re: GUI development with 3D view

2007-12-10 Thread Mike C. Fletcher
machines that have problems with the 3.x alphas so far. Tempus fugit, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: State of the "Vaults of Parnassus"

2006-05-14 Thread Mike C. Fletcher
Last I heard he had someone who was helping him every once in a while to review the new submissions, but that was quite a while ago. I don't *think* there's any discarding, but rather a delay so long in publishing that it would feel like a discard... Take care, Mike -- ___

Re: Using python for a CAD program

2006-05-21 Thread Mike C. Fletcher
to the model. You could then have the simulation yield the interpreter lock and seldom block the rest of the process (save when it touches a Python object (i.e. the updates coming from or going to the queue)). Have fun, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: TopSort in Python?

2008-01-20 Thread Mike C. Fletcher
ore I knew the name IIRC)). > P.S. we have revived a thread started in 1999! > For some of us 1999 is well into our Pythonic life-cycle :) Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http:

Re: PyOpenGL

2008-02-04 Thread Mike C. Fletcher
ur import until after you have the context setup and see if that lets glGetString return a valid pointer. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-05 Thread Mike C. Fletcher
maller problem domain than optimising *every* language). > And is it possible to use IronPython in Linux? > Yes, running on Mono, though again, I don't believe Mono has had the optimisation effort put in to make it competitive with MS's platforms. Just my view from out in the boonies, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: simpleparse - what is wrong with my grammar?

2008-02-24 Thread Mike C. Fletcher
t;&"/"@") word:= [a-zA-Z], [a-zA-Z0-9_]* the ?- lookahead is reasonably inefficient, but lookahead is always going around discarding partial results anyway, so it's no worse than most other formulations. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: simpleparse - what is wrong with my grammar?

2008-02-25 Thread Mike C. Fletcher
7;s sat on my "would be nice" list for a long time. Unlike separate lexing/parsing systems, it's a little more involved for SimpleParse to do that without losing the generality of the parsing approach (i.e. the flexibility of a non-lexed approach). HTH, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-02-10 Thread Mike C. Fletcher
ecide you want to go your own way. You may want to check out PythonCAD as well, which IIRC does 2D-only CAD. Anyway, hope this was some help. Good luck, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenGL in TK

2009-02-17 Thread Mike C. Fletcher
headache of maintenance has vastly outweighed my interest. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: SuPy 1.6

2009-02-23 Thread Mike C. Fletcher
if there's anything else you feel should be said about the program, let me know. http://www.vrplumber.com/py3d.py#supy Have fun, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumb

Re: PyOpenGL Installation

2009-05-31 Thread Mike C. Fletcher
e machine, same for GLUT, GLE and the like, but they aren't required unless you want to use them. Heck, if you want you can even easy_install the package last I checked. http://pyopengl.sourceforge.net/documentation/installation.html My dictionary's defini

Re: PyOpenGL Tutorial?

2008-07-25 Thread Mike C. Fletcher
x27;s also tutorials that are not wxPython specific on the PyOpenGL documentation page. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Some questions about PyOpenGL and wxPython

2008-09-21 Thread Mike C. Fletcher
e doing to know what's wrong there. glColor should be working. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: PyOpenGL double-buffered hardware surface

2008-10-05 Thread Mike C. Fletcher
lay module. If wxPython, see their GLcanvas object. If GLUT, see glutInitDisplayMode, etceteras. Good luck, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.o

Re: Speed of data structures in python

2006-03-10 Thread Mike C. Fletcher
abled. Simpler (static) scenegraphs where there's lots of traversal between nodes should be a much bigger win for converting the whole thing to a single display list. HTH, Mike -- Mike C. Fletcher Designer, VR Plumber, Coder h

Re: Cheese Shop: some history for the new-comers

2006-03-11 Thread Mike C. Fletcher
ree to think of it as the cheese shop or pippy. The familiar names, cute as they may be, don't really help users much. That is, make it an in-joke if you like, but assume that users will refer to it via the obvious, simple description of what it is and target documentation and comm

Re: Can I control Video Card by using Python under linux?

2006-03-31 Thread Mike C. Fletcher
some suggestion. > Thanks! > You are probably looking for the "gstreamer" package. It has Python bindings available. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumb

Re: Library support for Python 3.x

2010-01-27 Thread Mike C. Fletcher
Interestingly, at PyGTA Myles mentioned that he'd found his first-ever Python 3.x-only library! Which he then converted to Python 2.x, because he actually wanted to use it in real code :) . Projects which haven't ported to Python 3.x aren't necessarily dead, they&#x

Re: PyOpenGL and graphics card support

2009-10-01 Thread Mike C. Fletcher
__main__": glutInit([]) glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) glutInitWindowSize(resX, resY) glutInitWindowPosition(0, 0) window = glutCreateWindow("hello") for name in (GL_VENDOR,GL_RENDERER,GL_SHADING_LANGUAGE_VERSION,GL_EXTENSIONS): pri

Re: Python for newbies (Pythno users group in Macedonia)

2010-03-13 Thread Mike C. Fletcher
Дамјан Георгиевски wrote: > Hi all, > we are starting with bi-monthly Python User Group meetings in Skopje, > Macedonia. The meetings are targeted for both beginners and more > experienced users. > ... http://us.pycon.org/2010/conference/schedule/event/

Re: PyDispatcher on sourceforge doesn't play nice with easy_install

2010-03-30 Thread Mike C. Fletcher
PyPI. That should now work properly with easy_install. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

<    22   23   24   25   26   27   28   >