Re: Python GUI application embedding a web browser - Options?

2017-10-10 Thread oliver
full-featured it is, how robust, etc. I have used PyQt for several years in production grade project and it is very solid and well documented and easy to program with and easy to write tests for. Oliver On Mon, 9 Oct 2017 at 12:59 fpp wrote: > Paul Moore said : > > > On 9 Octo

Re: [OT] Python and Excel

2017-12-18 Thread oliver
nguage to > Excel > > https://www.bleepingcomputer.com/news/microsoft/microsoft-considers-adding-python-as-an-official-scripting-language-to-excel/ > -- > https://mail.python.org/mailman/listinfo/python-list > -- Oliver My StackOverflow contributions My CodeProject articles My Github p

Re: Simple graphic library for beginners

2018-01-10 Thread oliver
ial, with reasonable costs, perfect for learning/startup then eventually (if that's the goal medium or long term) distribute/sell. Oliver On Wed, 10 Jan 2018 at 10:46 bartc wrote: > On 10/01/2018 14:55, Antoon Pardon wrote: > > On 10-01-18 13:40, Jan Erik Moström wrote: >

Re: Announcement: TLSv1.2 will become mandatory in the future for Python.org Sites

2017-01-13 Thread oliver
ficate: [SSL: CERTIF LED] certificate verify failed (_ssl.c:645) - skipping Could not find a version that satisfies the requirement nose (from versions: ) No matching distribution found for nose C:\...>pip install nose --trusted-host pypi.python.org Collecting nose Downloading nose-1.3.7-py

Re: Python in the news

2018-07-25 Thread oliver
> Rich > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Oliver Schoenborn || Cloud Application Engineer, Owner || Sentian Software Engineering || Ottawa, ON, Canada || +1-613-552-4466 (mobile) || @schollii2 (Twitter) || schoenborno (Skype) || LinkedIn <

Re: How to host python micro-services on windows machine?

2018-12-10 Thread oliver
uld I use for Windows ? Please help > -- > https://mail.python.org/mailman/listinfo/python-list > -- Oliver Schoenborn || Cloud Application Engineer, Owner || Sentian Software Engineering || Ottawa, ON, Canada || +1-613-552-4466 (mobile) || @schollii2 (Twitter) || schoenborno (Skype)

Re: How to host python micro-services on windows machine?

2018-12-10 Thread oliver
Mon., Dec. 10, 2018, 07:17 oliver, wrote: > There are a few options in https://stackoverflow.com/q/7629813/869951, > esp the third answer. > > On Mon., Dec. 10, 2018, 02:41 , wrote: > >> I am developing some micro-services in python. I want to host that >> micro-servi

Re: Multiprocessing vs subprocess

2019-03-13 Thread oliver
With multiprocessing you can take advantage of multi-core processing as it launches a separate python interpreter process and communicates with it via shared memory (at least on windows). The big advantage of multiprocessing module is that the interaction between processes is much richer than subpr

Re: Your IDE's?

2019-03-25 Thread oliver
Been using IDEs for 30 years (turbopascal anyone?): by far, PyCharm (used for 5 years so far). Then VS Code (one year). I still use both. Vs Code is faster to load, uses less mem and has a simplicity about it that is appealing. BUT vscode has similar speed to pycharm once started (actually might e

Re: Would you be interested in this Python open source project?

2019-10-12 Thread oliver
There are tons of projects that need help, I recommend that instead of re-inventing the wheel as there are enough choices out there re cicd and very likely you will find that your goal of 10/90 is unrealistic. Have a look at codetriage.com, and github has a feature that allows you to search for pr

Re: How to create an Excel app that runs Python?

2020-03-24 Thread oliver
, and used win32com from python to finally inject the data into Excel and get it to generate charts and tables that could be used by stakeholders without access to python. Oliver Schoenborn || Cloud Application Engineer, Owner || Sentian Cloud Computing Inc. || Ottawa, ON, Canada || +1-613-552

split a string with quoted parts into list

2005-03-10 Thread oliver
hi there i'm experimanting with imaplib and came across stringts like (\HasNoChildren) "." "INBOX.Sent Items" in which the quotes are part of the string. now i try to convert this into a list. assume the string is in the variable f, then i tried f.split() but i end up with ['(\\HasNo

TypeError: object.__init__() takes no parameters

2011-09-08 Thread Oliver
Hello together, let me be honest with you, I am a poor programmer who can only do Perl. I tried to code a program in Perl, but found that another guy already finished this job in Python. Unlucky for me, this guy is now CEO of a company, not really interested in supporting his old code. If I want

TypeVar single constraint not allowed, why?

2017-05-02 Thread oliver
her than an instance of a type, and returns a type. -- Oliver My StackOverflow contributions My CodeProject articles My Github projects My SourceForget.net projects -- https://mail.python.org/mailman/listinfo/python-list

Re: TypeVar single constraint not allowed, why?

2017-05-04 Thread oliver
ss references itself in an annotation: we should not have to resort to a string to express this, very clunky and hacky. > -- > Greg > -- > https://mail.python.org/mailman/listinfo/python-list > -- Oliver My StackOverflow contributions My CodeProject articles My Github projects My SourceForget.net projects -- https://mail.python.org/mailman/listinfo/python-list

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-19 Thread oliver
largh") > print("Fred") > func() > print("Eggs") > > What should be printed, and in what order? > > Actually, Python does violate least-surprise in one area here. There's > one message that gets printed "out of order" compared

Re: type hinting backward compatibility with python 3.0 to 3.4

2017-05-21 Thread oliver
e used as a > type and a class > that cannot be used as a type would be to require some sort of dunder > method be > defined on the type class. At first I was thinking `__type__`, but then I > remembered that's > already in use. maybe something as simple as `__hint__`. > > That or only allow classes that inherit from `type` to be used in type > annotations. > > I'm just spit balling ideas here. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Oliver My StackOverflow contributions My CodeProject articles My Github projects My SourceForget.net projects -- https://mail.python.org/mailman/listinfo/python-list

Re: Scala considering significant indentation like Python

2017-05-22 Thread oliver
fan (but also a C++ and Java fan) and I agree with > Scala creator, sometimes the readability is complicated. So, more often > than I would like to, I end up missing the braces :-O > > > -- > Cholo Lennon > Bs.As. > ARG > -- > https://mail.python.org/mailman/listinfo/py

Re: Question

2017-07-31 Thread oliver
ath" command will include the Python folder. So when you type "python ch3.py" the shell will see a python.exe in Python folder and run it and all will work! Oliver > > > > > > Sonja Williams > -- > https://mail.python.org/mailman/listinfo/python-list > -- Oliver My StackOverflow contributions My CodeProject articles My Github projects My SourceForget.net projects -- https://mail.python.org/mailman/listinfo/python-list

Re: Proposed new syntax

2017-08-10 Thread oliver
3, 4, 5] > > > How about these? > > > > [x + y for x in (0, 1, 2, 999, 3, 4) while x < 5 for y in (100, 200)] > > [100, 200, 101, 201, 102, 202] > > > > [x + y for x in (0, 1, 2, 999, 3, 4) if x < 5 for y in (100, 200)] > > [100, 200, 101, 201, 10

Re: A question on modification of a list via a function invocation

2017-08-14 Thread oliver
- > >> > >> def test(alist): > >>alist=[3,6,9] > >>return > >> > >> def test1(alist): > >>alist[0],alist[1],alist[2]=3,6,9 > >>return > >> > >> def test2(alist): > >>

Re-raised exceptions in 2.7.3 -- stack trace missing

2012-05-14 Thread Oliver Beattie
k. Bit perplexing, any idea what could cause this? —Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: Pipe in the "return" statement

2011-07-25 Thread Oliver Bestwalter
are both returning numbers and those are combined with a bitwise OR. Combining b0001 with b0010 results in 0011 for example, you can see this very often done in C Code to set and check flags. Here is a gentle introduction: http://www.codeproject.com/KB/tips/Binary_Guide.aspxhttp://www.codeproject.com/KB/tips/Binary_Guide.aspx Cheers Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: Single line if statement with a continue

2022-12-18 Thread Tony Oliver
On Saturday, 17 December 2022 at 23:58:11 UTC, avi.e...@gmail.com wrote: > Is something sort of taboo when using something like a computer language to > write a program? With what else would you write a program? -- https://mail.python.org/mailman/listinfo/python-list

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-02 Thread Tony Oliver
On Saturday, 2 October 2021 at 13:48:39 UTC+1, hongy...@gmail.com wrote: > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > > See the following testings: > > > > > > In [24]: a=3.1415926

Re: Selenium py3.8+ DepreciationWarnings - where to find doc to update code?

2021-10-13 Thread Tony Oliver
On Wednesday, 13 October 2021 at 16:16:46 UTC+1, jkk wrote: > Selenium 3.141+ > python 3.8+ > ubuntu 20.04 or windows 10 > > I'm trying to upgrade code from py3.6+ to py3.8+ and I'm getting several > DepreciationWarnings. > > Can someone point me to where I can find the documentation that

Re: the python name

2019-01-02 Thread Ben Oliver
On 18-12-31 22:39:04, pritanshsahs...@gmail.com wrote: why did you kept this name? i want to know the history behind this and the name of this snake python. It's named after Monty Python [0]. [0] https://docs.python.org/3/tutorial/appetite.html signature.asc Description: PGP signature -- ht

Re: Nufox : Xul + Python

2005-10-02 Thread Oliver Andrich
I would like to test it, but as soon as I try to execute an example my browser is guided to connect to 192.168.0.40. First off it is an non-routeable address and secondly my own too. :))) May be you have to fix your setup another time. Best regards, Oliver 2 Oct 2005 03:40:50 -0700, [EMAIL

Re: Question about inheritance...

2005-10-22 Thread Oliver Andrich
tc...? even there would exist a way to accomplish that, I would suggest to rethink your class hierachy. Such requirements can show serious design problems. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to separate directory list and file list?

2005-10-23 Thread Oliver Andrich
t is the best solution, but it looks nice. :) path = "/home/test" files = [fn for fn in os.listdir(path) if os.path.isfile(os.path.join(path, fn))] This gives you just the list of files in a given directory. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Object-Relational Mapping API for Python

2005-11-01 Thread Oliver Andrich
Hi, if you enjoyed Hibernate or got intrigued by it, go and look into SQLOject (http://www.sqlobject.org/). And you will be less intrigued by Hibernate, but will start to really like SQLObject. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --

get list of member variables from list of class

2005-01-28 Thread Oliver Eichler
) for l in listA] [varB.append(l.varB) for l in listA] s.o. ... But is this faster? After all I have to iterate over listA several times. Any better solutions? Oliver -- http://mail.python.org/mailman/listinfo/python-list

Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
dinal not in range(128) And this continues, when I try to write to a file in macroman encoding. As I am pretty sure, that I am doing something completely wrong and I also haven't found a trace in the fantastic cookbook, I like to ask for help here. :) I am also pretty sure, that I do s

Re: Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
> I know this isn't your question, but why write: > > > data = apply(string.replace, [data, html, char]) > > when you could write > > data = data.replace(html, char) > > ?? Cause I guess, that I am already blind. Thanks. Oliver -- Oliver A

Re: sudoku dictionary attack

2005-06-20 Thread Oliver Albrecht
Has some one an sodoku-task-generator? Here another solutions-ways: http://www.python-forum.de/viewtopic.php?t=3378 -- input -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
("\n\n") f.write(caption) f.close() Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://fitheach.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and encodings drives me crazy

2005-06-20 Thread Oliver Andrich
Yes, this and the coersion problems Diez mentioned were the problems I faced. Now I have written a little cleanup method, that removes the bad characters from the input and finally I guess I have macroman encoded files. But we will see, as soon as I try to open them on the Mac. But now I am more or

Re: CONNCET TO SOAP SERVICE

2005-07-19 Thread Oliver Andrich
= SOAPpy.SOAPProxy("http://user:[EMAIL PROTECTED]:8080/axis/services, "MyService") Afterwards I have access to the system. Bye, Oliver 2005/7/12, Slaheddine Haouel <[EMAIL PROTECTED]>: > > > > Can you help me plz ? I want to wonnect to SOAP webservices but befo

Re: PEP on path module for standard library

2005-07-22 Thread Oliver Andrich
am a so called Java hacker, I highly appreciate path as a module for my python projects and in my eyes it is the natural way to address files/paths. At least it is more natural to me then the os, os.path, etc. pp. bundle, that has grown over the time. I would love to see path inside Python's

Re: SOAPpy and http authentication

2005-08-02 Thread Oliver Andrich
hat way, but then the wsdl retrieval is done using the authentication, but all the service calls are done without. This is something, that is also puzzling me. So far I can perfectly live with SOAPProxy, but it would be nice to solve this puzzle. Best regards, Oliver -- Oliver Andrich <[EMAIL P

Re: Python Jabber client?

2005-09-08 Thread Oliver Andrich
Hi Paul, take this one. http://xmpppy.sourceforge.net/ It is used inside gajim, my favorite jabber client. http://gajim.org/ It works like a charm. And I am also using xmpppy for some monitoring tools, that alert our admins. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --

exceptions from logging on Windows

2005-09-12 Thread Oliver Eichler
tatus on this topic? Do I miss something? Thanks for help, Oliver -- http://mail.python.org/mailman/listinfo/python-list

convert list of tuples into several lists

2005-02-09 Thread Oliver Eichler
Hi, I can find examples to convert lists into a list of tuples like: >>> map(None,[1,2,3],[4,5,6]) [(1,4),(2,5),(3,6)] but how is it done vice versa? Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: convert list of tuples into several lists

2005-02-09 Thread Oliver Eichler
x[0]-x[1]) I guess first, isn't it? Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: convert list of tuples into several lists

2005-02-10 Thread Oliver Eichler
ECTED]:~/tmp> python test.py 1435.43 usec/pass 710.55 usec/pass What do we learn? It might look elegant but it is slow. I guess mainly because I do the iteration twice with the zip command. The 1000 element run seems to show what Guido means with "abuse of the argument passing machinery" Learned my lesson :) Thanks to all Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: convert list of tuples into several lists

2005-02-10 Thread Oliver Eichler
ss for 1000 elements: [EMAIL PROTECTED]:~/tmp> python test.py 1432.06 usec/pass 1768.58 usec/pass What do we learn? The zip-thingy is even faster than the for loop Learned my lesson :) Thanks to all Oliver -- http://mail.python.org/mailman/listinfo/python-list

question on installing python 2.7.2 and tcl 8.5.10 on WinXP

2011-10-02 Thread Lynn Oliver
Hello, I'm having problems building tcl/tk and python on Windows XP so that both are installed correctly. 1. ActivePython 2.7.2.5 works fine on my system but may be implicated in recent R6034 runtime errors from users. 2. Python.org 2.7.2 msi binaries install fine, but produce a "tcl wasn't i

httplib or urllib2 tomcat username and password

2006-01-13 Thread Michael Oliver
:8080/slide/ Thanks. Highly Cohesive and Loosely Coupled Mike Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd Apt 1096 Las Vegas, NV 89156 [EMAIL PROTECTED] http://www.alariussystems.com/ tel: fax: mobile: (702)953-8949 (702)974-0341 (518)378

Tomcat username and password2

2006-01-13 Thread Michael Oliver
print 'service unavailable' else: print 'unknown error: ' else: print 'success' for line in f: print line, [Mike Oliver>>] this returns 'not authorized' no matter what I put in for 'realm' or 'hos

Python Client accessing Tomcat

2006-01-14 Thread Michael Oliver
Loosely Coupled   Mike Oliver CTO Alarius Systems LLC 6800 E. Lake Mead Blvd Apt 1096 Las Vegas, NV 89156

Tomcat authentication from python

2006-01-15 Thread Michael Oliver
.     Highly Cohesive and Loosely Coupled   Mike Oliver CTO

Re: Re: Ctypes and freeing memory

2006-10-06 Thread Oliver Andrich
rience I am now in heaven. :) Sadly, I can't provide my team members an equal solution in the Java world, cause one of them starts to hate me for assigning him on another JNI job in our project. Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: languages with full unicode support

2006-06-25 Thread Oliver Bandel
this also. But I only have read some papers about Plan-9 and did not developed on it Only a try to have a different view on it. If someone knows more, please let us know :) Ciao, Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: languages with full unicode support

2006-06-26 Thread Oliver Wong
"Oliver Bandel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Xah Lee wrote: > >> >> As far as i know, Java and JavaScript are languages with full, complete >> unicode support. That is, they allow names to be defined using unicode.

Re: languages with full unicode support

2006-07-02 Thread Oliver Bandel
Matthias Blume wrote: > Tin Gherdanarra <[EMAIL PROTECTED]> writes: > > >>Oliver Bandel wrote: >> >>>こんいちわ Xah-Lee san ;-) >> >>Uhm, I'd guess that Xah is Chinese. Be careful >>with such things in real life; Koreans might >>beat

Question about decorators (with context?)

2006-09-24 Thread Oliver Andrich
think of a solution, where I have to do something like that. @my_funky_decorator(wand=) def read_image(self, filename): pass So, I like to ask, if someone could enlighten me how to implement the easy decorator I mentioned in my first "example". Thanks and best regards, Oliver --

ctypes question about call by reference

2006-09-24 Thread Oliver Andrich
) - ExceptionType is an enum - MagickWand is somewhat strange, but so far it works fine without any type mangling. How would I wrap this thing using ctypes? Can anybody help me with that? Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ --

Re: Re: ctypes question about call by reference

2006-09-24 Thread Oliver Andrich
On 9/24/06, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > Oliver Andrich <[EMAIL PROTECTED]> wrote: > > - ExceptionType is an enum > > - MagickWand is somewhat strange, but so far it works fine without any > > type mangling. > > > > How would I wrap

Re: Re: ctypes question about call by reference

2006-09-24 Thread Oliver Andrich
brary, and is not documented in the public interface. Thanks and Regards, Oliver. -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: PyXML not supported, what to use next?

2006-10-02 Thread Oliver Andrich
y nice choice. And it is also our "backup" choice, when lxml is not available on a system. Best regards,Oliver-- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Ctypes and freeing memory

2006-10-03 Thread Oliver Andrich
have to think about a different solution? Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Oliver Andrich
influence this recommondation. Step up as an admin for Roundup. :) Best regards, Oliver -- Oliver Andrich <[EMAIL PROTECTED]> --- http://roughbook.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Ctypes and freeing memory

2006-10-03 Thread Oliver Andrich
memory, and the returned string isn't helpful either. :) > If it doesn't, then you can use a more literal translation of the C > code, and use a c_void_p instead, using ctypes.string_at(description) > to get a string out of the buffer. This works and is a great tip! Thanks a lo

Image.putpalette(Colors)?

2005-05-17 Thread Oliver Albrecht
Has somebody a example-script how i can put a other palette to a image? (after this the image should have similar outlook) -- http://mail.python.org/mailman/listinfo/python-list

Re: Image.putpalette(Colors)?

2005-05-17 Thread Oliver Albrecht
Thanks, I've read this page.( out of date ?) http://www.pythonware.com/products/pil/articles/creating-palette-images.htm Very nicely to become answered from the major author and python genius highly personally himself :-D Which I want to do is; convert several "RGB" Images (or "P") with one spec

Re: Image.putpalette(Colors)?

2005-05-17 Thread Oliver Albrecht
I mean equal outlook. Or as other objective: give some Images (which has all same colors but other palettes) for an Animation the same/one palette and nothings is changed in their outlook -- http://mail.python.org/mailman/listinfo/python-list

Re: Image.putpalette(Colors)?

2005-05-18 Thread Oliver Albrecht
I think in this Example is an fault lut has the sequence from "im" but not from "lut.putdata(range(256))" ##Getting the Palette Contents Using Resize/Convert assert im.mode == "P" lut = im.resize((256, 1)) lut.putdata(range(256)) lut = im.convert("RGB").getdata() ^^ # lut now contains a se

Re: search/replace in Python

2005-05-27 Thread Oliver Andrich
ed in () in the first regex. Here is the output of my ipython session. In [15]: text="This is a Python. And some random nonsense test." In [16]: re.sub(r"(.*)",r"http://www.google.com/search?q=\1>\1", text) Out[16]: 'This is a http://www.google.com/sea

Re: Questions about wxPython...

2005-05-28 Thread Oliver Albrecht
Helmutt schrieb: > Whats the name of the event that occur when I press the > exit/cross-button on the frame? > How do I connect a function with that event? Hi, I try just to begin the same. I found this in the docu. wxApp::OnExit http://wxwidgets.org/manuals/2.5.3/wx_wxapp.html#wxapponexit wxWin

Canceling events from COM objects

2007-08-16 Thread Oliver Nelson
just fine, but I can't seem to figure out how to cancel the event so that mappoint doesn't do its stuff with it...I've tried setting Cancel based on the mappoint specs, but it doesn't seem to get sent back anywhere... Any ideas please? Thanx, OLIVER -- http://mail.python.org/mailman/listinfo/python-list

Canceling events from COM Objects

2007-08-16 Thread Oliver Nelson
just fine, but I can't seem to figure out how to cancel the event so that mappoint doesn't do its stuff with it...I've tried setting Cancel based on the mappoint specs, but it doesn't seem to get sent back anywhere... Any ideas please? Thanx, OLIVER -- http://mail.python.org/mailman/listinfo/python-list

Canceling events from COM Objects

2007-08-16 Thread Oliver Nelson
just fine, but I can't seem to figure out how to cancel the event so that mappoint doesn't do its stuff with it...I've tried setting Cancel based on the mappoint specs, but it doesn't seem to get sent back anywhere... Any ideas please? Thanx, OLIVER -- http://mail.python.org/mailman/listinfo/python-list

Events in Com Object for Python

2007-08-16 Thread Oliver Nelson
just fine, but I can't seem to figure out how to cancel the event so that mappoint doesn't do its stuff with it...I've tried setting Cancel based on the mappoint specs, but it doesn't seem to get sent back anywhere... Any ideas please? Thanx, OLIVER -- http://mail.python.org/mailman/listinfo/python-list

Cancelling events on a COM Object

2007-08-16 Thread Oliver Nelson
just fine, but I can't seem to figure out how to cancel the event so that mappoint doesn't do its stuff with it...I've tried setting Cancel based on the mappoint specs, but it doesn't seem to get sent back anywhere... Any ideas please? Thanx, OLIVER -- http://mail.python.org/mailman/listinfo/python-list

Re: Cancelling events on a COM Object

2007-08-17 Thread Oliver Nelson
James, I was getting an error everytime so I thought I had a setup problem... Sorry everybody... OLIVER James Stroud wrote: > Oliver, wait a while before you panic about your post not getting through! > > James > -- http://mail.python.org/mailman/listinfo/python-list

Canceling events on COM objects

2007-08-18 Thread Oliver Nelson
just fine, but I can't seem to figure out how to cancel the event so that mappoint doesn't do its stuff with it...I've tried setting Cancel based on the mappoint specs, but it doesn't seem to get sent back anywhere... Any ideas please? Thanx, OLIVER -- http://mail.python.org/mailman/listinfo/python-list

Re: Canceling events on COM Objects in python

2007-08-18 Thread Oliver Nelson
nly a different model than the standard wx event system... OLIVER [EMAIL PROTECTED] wrote: > On Aug 17, 11:54 pm, Oliver Nelson <[EMAIL PROTECTED]> wrote: >> I have MapPoint working in Python, and I'm trying to cancel events on >> the map, but I can't seem to make that happ

Re: Cancelling events on a COM Object

2007-08-18 Thread Oliver Nelson
Roger, I tried modifying my code so that I have def OnBeforeClick(self, Button, Shift, X, Y, Cancel): print "click" Cancel = True return Cancel But this doesn't seem to have changed anything. Am I doing this wrong? OLIVER Roger Upole wrote: > O

Re: Tabs versus Spaces in Source Code

2006-05-16 Thread Oliver Bandel
known as “religious war” — > a heated fight over trivia. In this essay, i like to explain what is > the situation behind it, and which is proper. > > Simply put, tabs is proper, and spaces are improper. [...] I fullheartedly disagree :) So, no "essay" on this is necessary to r

Re: Tabs versus Spaces in Source Code

2006-05-16 Thread Oliver Bandel
wing experience on how to handle this in true life (different editors/systems/languages...) I saw, that converting the "so fine tabs" was annoying. The only thing that always worked were spaces. Tab: nice idea but makes programming an annoyance. Ciao, Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs versus Spaces in Source Code

2006-05-18 Thread Oliver Bandel
, but typing needs some time. But it's good, because when ready with typing your email, it's not necessary to go to sports after work. So your boss can insist that you longer stay at work. Ciao, Oliver ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs versus Spaces in Source Code

2006-05-23 Thread Oliver Wong
;handwriting recognition" input method, or the "speech recognition" input method to insert english text. There are other input methods for the Asian languages (e.g. Chinese, Japanese, etc.) - Oliver -- http://mail.python.org/mailman/listinfo/python-list

Custom class to a dictionary?

2008-01-26 Thread Oliver Beattie
Just wondering if it is possible to pass a custom class instance instance to dict() by way of using methods like you can for iterators (__iter__, __getitem__ etc.) I see there is no __dict__ -- is there anything else I can use to achieve this? Kind Regards, Oliver -- http://mail.python.org

Re: Custom class to a dictionary?

2008-01-26 Thread Oliver Beattie
On Jan 26, 12:01 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Sat, 26 Jan 2008 03:35:18 -0800, Oliver Beattie wrote: > > Just wondering if it is possible to pass a custom class instance > > instance to dict() by way of using methods

call function of class instance with no assigned name?

2009-05-05 Thread George Oliver
hi, I'm a Python beginner with a basic question. I'm writing a game where I have keyboard input handling defined in one class, and command execution defined in another class. The keyboard handler class contains a dictionary that maps a key to a command string (like 'h': 'left') and the command hand

Re: call function of class instance with no assigned name?

2009-05-05 Thread George Oliver
On May 5, 9:01 am, Chris Rebert wrote: > On Tue, May 5, 2009 at 8:52 AM, George Oliver > wrote: > > I create instances of these classes in a list attached to a third, > > 'brain' class. > > You could exploit Python's dynamism by using the getattr() fu

Re: call function of class instance with no assigned name?

2009-05-05 Thread George Oliver
On May 5, 11:59 am, Dave Angel wrote: > 1) forget about getattr() unless you have hundreds of methods in your > map. The real question is why you need two maps. What good is the > "command string" doing you? Why not just map the keyvalues directly > into function objects? Thanks for the repl

Re: call function of class instance with no assigned name?

2009-05-05 Thread George Oliver
Thanks for the suggestions so far. I've taken the advice to keep things simple so currently I'm just creating one instance of the commandHandler and assigning it a name with command = commandHandler (). This makes it easy to call it from any of the other handlers, and I think this will work for wha

Re: call function of class instance with no assigned name?

2009-05-06 Thread George Oliver
On May 6, 3:07 pm, Carl Banks wrote: > I'm going to guess that you want the keyboardHandler to call method of > commandHandler. There's no reason for commandHandler to be a handler > at all then: keyboardHandler is already handling it. Thanks Carl, you've got it right and your following exampl

Re: Learning Python in a group

2008-06-22 Thread George Oliver
On Jun 22, 3:43 am, "Jonathan Roberts" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm looking to learn Python (as my first programming language) and I'm > pretty sure I'd be more successful doing this with a group of other > people. hi Jon, I'm in the same situation as you and think a co-op method o

2D online multiplayer framework?

2008-06-28 Thread George Oliver
I'm looking for a framework to support a 2D online real-time multiplayer game (rugby league football with a lo-fi pixel look). The GameProgramming page at the Python wiki had some suggestions but so far nothing looks that promising, does anyone have some recommendations? It would be ideal to play

Re: 2D online multiplayer framework?

2008-06-28 Thread George Oliver
On Jun 28, 9:04 am, Gary Herron <[EMAIL PROTECTED]> wrote: > > Pyglet is my favorite: http://www.pyglet.org/ > > Twisted might be fine for the "online multiplayer" parts, but really if > you want a 2D/3D real-time game, start with a game framework. > > Gary Herron Thanks Cédric and Gary for the s

sending input to an embedded application

2008-07-12 Thread George Oliver
hi, I'm a novice programmer trying to better define a hobby project I'm thinking of. What I would like to do is take a program and embed it or put it within a Python-run GUI, using the GUI just to capture and send input to the application, and display the ouput. Specifically I want to use a Pytho

looking for Python live code reloading IDEs

2010-01-22 Thread George Oliver
hi, I'm wondering if there are any Python programming environments that enable live code reloading, for example something like the Scheme- based impromptu (but also meant for any kind of Python program, not just audio/visual generation). Currently I do this directly in my editor (for game developm

Re: Newsgroup for beginners

2009-11-16 Thread George Oliver
On Nov 16, 8:35 am, Terry Reedy wrote: > mrholtsr wrote: > > Is there a Python newsgroup for those who are strictly beginners at > > programming and python? > > gmane.comp.python.tutor, which I believe mirrors the tutor-list There also is a beginner's forum at python-forum.org: http://www.python

string.Template question

2010-04-05 Thread Wells Oliver
Can you use dicts with string.Template? e.g. a structure like: game = { 'home': {'team': row['home_team_full'], 'score': row['home_score'], 'record': '0-0', 'pitcher': { 'id': home_pitcher.attrib['id'], 'name': home_pitcher.attrib['last_name'], 'wins': hom

requirements in writing an email/rss/usenet client?

2010-08-08 Thread George Oliver
hi, I'd like to know what to consider when writing an email/rss/usenet client. Apologies for such a broad question, but I've never attempted a project of this scope and I'm currently feeling out the requirements. My target is something like a gui-based mutt (I use a Windows OS btw), with influenc

A question on scope...

2009-06-18 Thread Wells Oliver
In writing out python classes, it seems the 'self' is optional, meaning that inside a class method, "self.foo = bar" has the same effect as "foo = bar". Is this right? If so, it seems a little odd- what's the rationale? Or am I mistaken? -- Well

n00b confusion re: local variable referenced before assignment error

2009-06-19 Thread Wells Oliver
h is the "file.write(handler.read())" line.. What gives? -- Wells Oliver we...@submute.net -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb and ordering of column names in list returned by keys() w/ a DictCursor

2009-07-02 Thread Wells Oliver
x27;, 'ER'] Neither alphabetical nor the order in which they were specified in the query nor... any seeming order I can suss out. Any ideas? Thanks! (cursor being a MySQLdb.cursors.DictCursor object.) -- Wells Oliver we...@submute.net -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >