In article <[EMAIL PROTECTED]>,
Uwe Schmitt <[EMAIL PROTECTED]> wrote:
>I am trying to print raw postscript data on windows.
>win32print should do the work like this:
>
> h=win32print.OpenPrinter(name)
> win32print.StartDocPrinter(h, 1, ("", "", "RAW"))
> win32print.WritePrinter(h, file("p.
In article <[EMAIL PROTECTED]>,
"gmax2006" <[EMAIL PROTECTED]> wrote:
>I am having hard time with installing MySQLdb on Linux.
...
>My Linux is "Red Hat Enterprise Linux ES release 4 (Nahant)"
Why don't you just use yum to install python-mysql or whatever the
package is called, and have it au
Konrad Hinsen wrote:
> I am trying to install Python 2.4.3 on an AMD Opteron system using
> the Portland Group's compiler (pgcc). Using
>
> I finally managed to obtain an executable that would start and work,
> but it fails a couple of test cases:
...
> Has anyone encountered such failures before?
Why does code.InteractiveConsole support command history on Windows, but
not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not support
history at all, and the Windows console is implementing it's own? Is
there any way to get command history working with InteractiveConsole on
Linux?
C
The problem with understanding augmented assignment is that it directs the
compiler and interpreter to do one or maybe two mostly invisible
optimizations. To me, the effective meaning of 'evalutating once versus
twice' is most easily seen in the byte code generated by what is, remember,
the r
Make Lots of Money Quick, Easy & LEGAL with Paypal
AS SEEN ON OPRAH!!
PAYPAL VERIFIES THAT THIS $6 INVESTMENT SCHEME IS 100% LEGAL AND IS A BIG HIT
THIS YEAR SEE
THEIR NOTE BELOW OR ASK THEM DIRECTLY... THIS SCHEME MIGHT TAKE 15-30 MINUTES
AND JUST $6,
BUT IT IS 100% WORTH IT TO
Announcing Urwid 0.9.5
--
Urwid home page:
http://excess.org/urwid/
Tarball:
http://excess.org/urwid/urwid-0.9.5.tar.gz
About this release:
===
This release adds support for the alternate character set with DEC
special and line drawing characters. Ur
Anyone know how to get the caption of the window currently in focus in
whatever app is in use? If I am using Excel, for example, I want my
python app to know that Excel is currently being used.
--
http://mail.python.org/mailman/listinfo/python-list
Tom Plunket wrote:
> I'm using this package that I can't import on startup, instead needing
> to wait until some initialization takes place so I can set other
> things up so that I can subsequently import the package and have the
> "startup needs" of that package met.
[...]
> So as y'all might gues
On 2006-07-14 18:05:56, Ivan Shevanski wrote:
> Hey I'm pretty new to python and I have a question. I'm trying to write:
> "[BOOT]
> run=C:\windows\aawin.bat"
>
> in my win.ini
> So I went about it like this:
>
> win = open('C:\windows\win.ini', 'a')
> win.write('[BOOT]')
> win.write('\n')
> wi
I'm working on a simple Python program, with Tkinter, and I need to
display the math symbols for set union and intersection, in unicode
\N{N-ARY UNION} and \N{N-ARY INTERSECTION}. Everything was displaying
correctly (when I ran the program) until I changed my OS distribution
from SuSE to Ubuntu
Marshall wrote...
> I am having a hard time with this very broad definition of aliasing.
> Would we also say that a[1+1] and a[2] are aliases? It seems
> to me, above, that we have only a, and with only one variable
> there can be no aliasing.
The problem with this (and with the relational one as
Or:
win.write(r'run=C:\windows\aawin.bat')
The r before the string makes it a "raw" string, where \ are not
interpreted as escape characters.
Marcelo
Daniel Nogradi ha escrito:
> > Hey I'm pretty new to python and I have a question. I'm trying to write:
> > "[BOOT]
> > run=C:\windows\aawin.ba
Installable package?Any ideas?Thanks in advance,Jeremy
Yahoo! Music Unlimited - Access over 1 million songs.
Try it free. --
http://mail.python.org/mailman/listinfo/python-list
I need to link an event registration site to
a housing site. From what I can gather, I
make a call to some url that ends in WSDL, and
get some XML back from the housing site. Now I'm
supposed to make this into an object and call it
here and there through SOAP? Is that how it works?
Is this
Tom Plunket wrote:
> I know that the message didn't have enough formatters, that's why I
> asked. (Although I would have assumed that the generator would get
> automatically converted to a sequence that was consumable by the
> interpolation operator...)
That's because::
aFormatString %
Erik Max Francis wrote:
> > For enrichment purposes, is there a way to do this sort of thing with
> > a generator? E.g. something like:
> >
> > def SentenceGenerator():
> >words = ['I', 'have', 'been', 'to', 'the', 'fair']
> >for w in words:
> > yield w
> >
> > message = "%s %s %
Tom Plunket wrote:
> Excellent. Thanks. Has this been around long? I "learned" Python in
> the 1.6 days iirc, but haven't done much except simple scripting with
> it since...
Yep. Been around since at least 1.5.x.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San
Justin Azoff wrote:
> Of course..
>
> I should read the python documentation at
> http://docs.python.org/lib/typesseq-strings.html
Excellent. Thanks. Has this been around long? I "learned" Python in
the 1.6 days iirc, but haven't done much except simple scripting with
it since...
-tom!
--
h
I'm using this package that I can't import on startup, instead needing
to wait until some initialization takes place so I can set other
things up so that I can subsequently import the package and have the
"startup needs" of that package met.
Specifically this has to do with the interaction between
> Hey I'm pretty new to python and I have a question. I'm trying to write:
> "[BOOT]
> run=C:\windows\aawin.bat"
>
> in my win.ini
> So I went about it like this:
>
> win = open('C:\windows\win.ini', 'a')
> win.write('[BOOT]')
> win.write('\n')
> win.write('run=C:\windows\aawin.bat')
>
> I expecte
On 2006-07-14 16:07:28, Piet van Oostrum wrote:
>>AP> 2a) In case you answer yes to question (1). Can you explain me how
>>AP> I have to read the language reference in order to deduce this
>>AP> is indeed the way things should be understood.
>
> Just read what it says. `It is only evaluat
Hi,
I am having hard time with installing MySQLdb on Linux.
My Python version is 2.3. I have downloaded
"MySQL-python-1.2.1_p2.tar.gz" from sourceforge. The README file
asks for MySQL installation. My MySql server is on another box. That is
why I think I should to install just the MySql client (a
Marshall schrieb:
> Joachim Durchholz wrote:
>> You can have aliasing without pointers; e.g. arrays are fully sufficient.
>> If i = j, then a [i] and a [j] are aliases of the same object.
>
> I am having a hard time with this very broad definition of aliasing.
> Would we also say that a[1+1] and a
On 2006-07-14 12:07:12, Fredrik Lundh wrote:
> umm. what are we talking about here, really ?
Aha! You took a big load off my chest -- this is pretty much what I thought
should be there :)
What I was talking about is that Diez responded with a clear "no" to my
question whether print would do the
Marshall schrieb:
> Joachim Durchholz wrote:
>> Marshall schrieb:
>>> What about my example of SQL? Mutation, no pointers, no aliasing.
>>> Yet: useful.
>> Sorry, but SQL does have aliasing.
>
> Well. I suppose we do not have an agreed upon definition
> of aliasing, so it is hard to evaluate eithe
Kiran wrote:
> Hello All,
> I am writing an app in wxPython using a grid. I need to be able to
> recognize what cell in the grid the user is hovering over with the
> mouse. How to do this?
> I tried XYToCell(x, y), but that doesnt work properly because it
> thinks that mouse position (0, 0) i
Hey I'm pretty new to python and I have a question. I'm trying to write:"[BOOT]run=C:\windows\aawin.bat"in my win.iniSo I went about it like this:win = open('C:\windows\win.ini', 'a')
win.write('[BOOT]')win.write('\n')win.write('run=C:\windows\aawin.bat')I expected that to work, but instead of C:\
tac-tics wrote:
> Nick Vatamaniuc wrote:
> > I really like the set notation idea. Now that sets are first class
> > "citizens" along with dicts, lists and tuples I think they should be
> > used when it makes sense to use them
>
> In actual usage, though, how often is it strictly required one uses a
Marshall wrote:
> Joe Marshall wrote:
> > Marshall wrote:
> > >
> > > Consider the following Java fragment:
> > >
> > > void foo() {
> > > int i = 0;
> > > int j = 0;
> > >
> > > // put any code here you want
> > >
> > > j = 1;
> > > i = 2;
> > > // check value of j here. It is still 1
> "Dirk Hagemann" <[EMAIL PROTECTED]> (DH) wrote:
>DH> Hi!
>DH> How can I start several jobs at the same time with python? I want to
>DH> collect data from some servers and I don't want to wait until the first
>DH> server is finished. These jobs should run parallel to save time.
Use the subpr
> Antoon Pardon <[EMAIL PROTECTED]> (AP) wrote:
>AP> Well I'll start on an possitive note and accept this. Now I'd like you
>AP> to answer some questions.
>AP> 1) Do you think the langauge reference makes it clear that this is how
>AP>the reader has to understand things.
Yes.
>AP> 2a) I
Quenton,
What kind of instances do you want to create? An instance has to be an
instance of something. You mention creating instances "of a method",
what do you mean by that?
Anyway, assuming you are new to Python here is a basic intro about
objects and classes:
Think of a class as a blueprint an
Quenton Bonds wrote:
> Hello
> I am trying to understand the abilities and limitation of creating an
> instance. First I will give you my understanding then please steer me
> in the right direction.
>
Wow, you've got it nearly completely comprehensively backwards.
> Abiities
> 1. The two ways t
Nevermind. Did it in Java. Thanks anyway to all who gave suggestions.
--
http://mail.python.org/mailman/listinfo/python-list
Or Python on the Zaurus, which I used to develop a wifi CRM app on a
group of refurb Sharp Zaurus SL-5500 units. Here's a link to the Python
implementation on the Z --> http://starship.python.net/~hinsen/Zaurus/.
Grzegorz Makarewicz wrote:
> Jack wrote:
> > Is there a Python packaging that is spec
Quenton Bonds wrote:
> Hello
> I am trying to understand the abilities and limitation of creating an
> instance. First I will give you my understanding then please steer me
> in the right direction.
>
> Abiities
> 1. The two ways to create an instance is def method(self) &
> __int__(self, other,
Jack wrote:
> Is there a Python packaging that is specifically for
> embedded systems? ie, very small and configurable so the
> user gets to select what modules to install?
>
> For Linux-based embedded systems in particular?
>
> I'm thinking of running it on the Linksys's Linux-based open
> source
Here's an URL to a project that appears to be dated from 2004 -->
http://skreak.com/wrt54g/python.php.
Jack wrote:
> Is there a Python packaging that is specifically for
> embedded systems? ie, very small and configurable so the
> user gets to select what modules to install?
>
> For Linux-based em
Jack wrote:
> ...snip...
> If Python is not the best candidate for embedded systems because
> of the size, what (scripting) language would you recommend?
>
TCL is fairly popular in the embedded space. Fairly small footprint.
The syntax is not to everyone's taste.
--
http://mail.python.org/mailma
You will probably have more result on the pywebsvcs-talk mailing list.
http://pywebsvcs.sf.net/
That said, ZSI will generate code from wsdl. I am not sure what it is you
are asking for, but this is probably what you actually want.
-Chris
On Tue, Jul 11, 2006 at 11:15:45AM +0530, Vedanta Barooa
Quenton Bonds wrote:
> I am trying to understand the abilities and limitation of creating an
> instance. First I will give you my understanding then please steer me
> in the right direction.
>
> Abiities
> 1. The two ways to create an instance is def method(self) &
> __int__(self, other, ins
>I have a tree class, a tree acts like a dictionary, but when you
> iterate over it, it always iterates over the keys in order.
Antoon,
First of all there is a distinction between ordered and un-ordered data
types. You can only slice ordered data types. Lists and tuples are
ordered while the keys
That is why we have PEPs and people who read forums and, of course,
GvR.
At this point it seems that Python is mainstream enough that it
probably shouldn't be modified too much but it is also 'fresh' enough
to accept some modifications and new ideas.
The bottom line is that the more people are in
A.M. Kuchling <[EMAIL PROTECTED]> wrote:
> If Python 3000 turns into a let's-try-all-sorts-of-goofy-new-ideas
> language, at least some of those ideas will turn out to have been
> mistakes, and then we'll need a Python 3000++ to clean things up.
And I also think "we" will lose some developers in
Antoon Pardon <[EMAIL PROTECTED]> wrote:
> I have a tree class, a tree acts like a dictionary, but when you
> iterate over it, it always iterates over the keys in order. This
> makes it usefull to iterate over a slice. So it would be usefull
> if methods like keys, values and items could take a sl
mclaugb wrote:
> Um, i didnt see at the "more information" link whether "numpy,
> numarray, matplotlib, scipy, and scientific python" was included .
>
There's your answer...
:Robert
--
http://mail.python.org/mailman/listinfo/python-list
Hello
I am trying to understand the abilities and limitation of creating an
instance. First I will give you my understanding then please steer me
in the right direction.
Abiities
1. The two ways to create an instance is def method(self) &
__int__(self, other, instances,...)
2. By creating a
tic-tacs,
But how often does one use a list or a tuple when a set is actually
more meaningful? -- Probably more than expected, because traditionally
comming from C and in the older Python versions there were no sets.
A prime example are the keys of the dictionary. They are a _set_ not a
list. If
Grant Edwards wrote:
> On 2006-07-14, Jack <[EMAIL PROTECTED]> wrote:
>
>> Is there a Python packaging that is specifically for
>> embedded systems? ie, very small and configurable so the
>> user gets to select what modules to install?
>>
>> For Linux-based embedded systems in particular?
>>
>>
Um, i didnt see at the "more information" link whether "numpy,
numarray, matplotlib, scipy, and scientific python" was included .
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> mclaugb wrote:
>
>> does anyone know if the activestate distribution has all of the numpy
Hi,
I am trying to print raw postscript data on windows.
win32print should do the work like this:
h=win32print.OpenPrinter(name)
win32print.StartDocPrinter(h, 1, ("", "", "RAW"))
win32print.WritePrinter(h, file("p.ps").read())
win32print.EndDocPrinter(h)
win32print.ClosePrinter(h)
On 2006-07-14, Lawrence Oluyede <[EMAIL PROTECTED]> wrote:
> Antoon Pardon <[EMAIL PROTECTED]> wrote:
>
>> These are just some ideas. Whether they fit into python or not I will
>> leave to the developers.
>
> I'm not a Python pro. but:
>
>> 1) Literal slices, in a sense we already have these, but t
On 2006-07-14, Jack <[EMAIL PROTECTED]> wrote:
> Is there a Python packaging that is specifically for
> embedded systems? ie, very small and configurable so the
> user gets to select what modules to install?
>
> For Linux-based embedded systems in particular?
>
> I'm thinking of running it on the L
On 2006-07-14, Tobiah <[EMAIL PROTECTED]> wrote:
> So I "man 3 clock" and notice:
>
> The value returned is the CPU time used so far as a clock_t; to get
> the number
>of seconds used, divide by CLOCKS_PER_SEC.
>
> So, I'm wondering how to get that value from python.
What valu
mclaugb wrote:
> does anyone know if the activestate distribution has all of the numpy,
> numarray, matplotlib, scipy, and scientific python? their website does not
> say what it includes.
http://www.activestate.com/Products/ActivePython/more_information.plex
--
http://mail.python.org/mail
Andreas Rossberg wrote:
> OK, this is interesting. I don't know Hermes, is this sort of like a
> dynamically checked equivalent of linear or uniqueness typing?
I'm not sure what linear or uniqueness typing is. It's typestate, and if
I remember correctly the papers I read 10 years ago, the folks
does anyone know if the activestate distribution has all of the numpy,
numarray, matplotlib, scipy, and scientific python? their website does not
say what it includes.
--
http://mail.python.org/mailman/listinfo/python-list
Is there a Python packaging that is specifically for
embedded systems? ie, very small and configurable so the
user gets to select what modules to install?
For Linux-based embedded systems in particular?
I'm thinking of running it on the Linksys's Linux-based open
source router WRT54G. It has 4MB
Marshall wrote:
> Andreas Rossberg wrote:
> >
> > And note that even with second-class state you can still have aliasing
> > issues - you just need mutable arrays and pass around indices. Keys in
> > databases are a more general form of the same problem.
>
> So for array a, you would claim that "a[
On Fri, 14 Jul 2006 18:45:07 +0200,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
>> This attitude may have some downsides. The Python developers don't know
>> everything, other people can have some experience of computer languages
>> too.
>
> "some experience of
Tobiah wrote:
> import time
>
> while 1:
> print time.clock()
>
> This gave me a stream of floats, the integer part of which
> only updated about every three seconds. Now, the manual
> also states:
>
> The precision, and in fact the very definition of the meaning
> of ``pr
Tobiah wrote:
> The manual says:
>
> On Unix, return the current processor time as a
> floating point number expressed in seconds.
>
> So I ran this program:
>
> #!/usr/bin/python
>
> import time
>
> while 1:
> print time.clock()
>
>
>
> This gave me a stream of floats, the integer
Tobiah wrote:
> Am I barking up the wrong tree?
I don't think so, time.clock() has always worked fine for me. You can
also try time.time(). It is not as precise, but it might be sufficient
for your needs.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> This attitude may have some downsides. The Python developers don't know
> everything, other people can have some experience of computer languages
> too.
"some experience of computer languages" != "experience of language
design and implementation"
as long as most of th
Nick Vatamaniuc wrote:
> I really like the set notation idea. Now that sets are first class
> "citizens" along with dicts, lists and tuples I think they should be
> used when it makes sense to use them
In actual usage, though, how often is it strictly required one uses a
set over a list? It is sim
> The real problems with the Py3k list seem to be associated with a number
> of people who, despite having had little apparent connection to the
> language until now, have joined the list and started making
> inappropriate suggestions, which then have to be (patiently) rejected.
Steve,
What does
Look into the subprocess module. Possibly relevant link follows:
http://docs.python.org/lib/node244.html
--
http://mail.python.org/mailman/listinfo/python-list
Etayki wrote:
> Thanks for the previous response. Now I want to do something similar:
>
> ie.ExecWB(IDM_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER)
>
> However, I don't have the values for the above constants either, and I
> don't know how to import them. Any ideas?
hint: google often picks up sou
The manual says:
On Unix, return the current processor time as a
floating point number expressed in seconds.
So I ran this program:
#!/usr/bin/python
import time
while 1:
print time.clock()
This gave me a stream of floats, the integer part of which
only updated abou
I wanted to dig a little deeper understanding of Classes, Methods and
Instances. However I get this - ' AClassA instance has no attribute' as
an error when I call the method I am using as a learning tool.
Here's the code, from hammer.py
-
I really like the set notation idea. Now that sets are first class
"citizens" along with dicts, lists and tuples I think they should be
used when it makes sense to use them A keyset of a dictionary should be
viewed as a set not a list because it is a key_set_ after all. Also
sets should get back th
Laszlo Nagy írta:
> Laszlo Nagy írta:
>
>> Hello,
>>
>> I'm trying to write a very simple program that moves all messages from
>> INBOX into another folder.
>> I'm not sure what am I doing wrong. This is a very simple task. I
>> believe I need to call these methods:
>>
>> - search -> get all
Simon Forman wrote:
...
> I usually use this with assert statements when I need to check a
> sequence. Rather than:
>
> for something in something_else: assert expression
>
> I say
>
> assert False not in (expression for something in something_else)
>
> This way the whole assert statement will be r
Joachim Durchholz wrote:
>
> You can have aliasing without pointers; e.g. arrays are fully sufficient.
> If i = j, then a [i] and a [j] are aliases of the same object.
I am having a hard time with this very broad definition of aliasing.
Would we also say that a[1+1] and a[2] are aliases? It seems
Thanks for the previous response. Now I want to do something similar:
ie.ExecWB(IDM_SELECTALL, OLECMDEXECOPT_DONTPROMPTUSER)
However, I don't have the values for the above constants either, and I
don't know how to import them. Any ideas?
--
http://mail.python.org/mailman/listinfo/python-list
Hello All,
I am writing an app in wxPython using a grid. I need to be able to
recognize what cell in the grid the user is hovering over with the
mouse. How to do this?
I tried XYToCell(x, y), but that doesnt work properly because it
thinks that mouse position (0, 0) is the first cell in the g
Joachim Durchholz wrote:
> Marshall schrieb:
> > void foo() {
> > int i = 0;
> > int j = 0;
> > j = 1;
> > i = 2;
> > // check value of j here. It is still 1, no matter what you filled
> > // in above.
> > // The assignment to i cannot be made to affect the value of j.
> > }
> >
> >
Hi, I'm observing some weird behavior and have written the following
test program to demonstrate. This works under cygwin/WinXP but not
Gentoo(kernel 2.6):
huh.py
---
import pty,os,sys
# Fork
( pid, fd ) = pty.fork()
if pid == 0:
# Child thread
pr
Andreas Rossberg wrote:
> Marshall wrote:
> >
> > After all, what are the alternatives? Purely-functional
> > languages remove themselves from a large class of
> > problems that I consider important: data management.
>
> Maybe, but I have yet to see how second-class variables are really more
> adeq
Have you considered a multi-threaded solution?
The following websites offer reasonable examples:
http://en.wikibooks.org/wiki/Programming:Python/Threading
http://www.wellho.net/solutions/python-python-threads-a-first-example.html
-Derek
Dirk Hagemann wrote:
> Hi!
>
> How can I start several job
Joachim Durchholz wrote:
> Marshall schrieb:
> > What about my example of SQL? Mutation, no pointers, no aliasing.
> > Yet: useful.
>
> Sorry, but SQL does have aliasing.
Well. I suppose we do not have an agreed upon definition
of aliasing, so it is hard to evaluate either way. I would
propose usi
alf wrote:
> Bill Pursell wrote:
> > Now, in another shell,
> > % gdb
> > (gdb) attach 54321
> >
>
> Thx for the reply. But I wish to debug the python program, not python
> interpreter itself.
I haven't used this, but it looks like it's worth a try:
http://hapdebugger.sourceforge.net/
--
http:
Steve Holden:
> The real problems with the Py3k list seem to be associated with a number
> of people who, despite having had little apparent connection to the
> language until now, have joined the list and started making
> inappropriate suggestions, which then have to be (patiently) rejected.
This
Antoon Pardon <[EMAIL PROTECTED]> wrote:
> These are just some ideas. Whether they fit into python or not I will
> leave to the developers.
I'm not a Python pro. but:
> 1) Literal slices, in a sense we already have these, but they are
>limited to indexing. You can't do something like fun(::)
Gerhard Fiedler wrote:
> Anyway, it seems that anything non-ASCII is a bit problematic and needs
> "manual" handling of the runtime environment encoding. Seems a bit odd,
> given the worldwide distribution of Python... I would have thought that
> such a rather basic task like printing an accented
Just curious if anyone out there uses Python programming in the
Widestudio (http://www.widestudio.org) GUI IDE toolkit. I have looked
into it when running into some portability limitations trying certain
GUI tookits for Ruby, but couldn't get immersed into Widestudio. Since
I use Python as well I w
It works. Thanks Rob.
Sorin
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-07-14 10:52:22, Diez B. Roggisch wrote:
Will print take care of encoding translation according to the encoding
used in the target console?
>>>
>>> Of course not. AFAIK there is no way figuring out which encoding the
>>> target console supports. The best you can do is to offer an
Never mind, I used 2 different binds for the 2 different situations and
it worked.
thanks for looking anyhow.
-- Kiran
Kiran wrote:
> Hello All,
> I created a grid, where I register events every time the user changes
> an existing value inside the grid control. Right now, I am using the
> event:
Fredrik Lundh schrieb:
>
> if you'd spent enough time clicking around on python.org, you might have ended
> up on this page:
>
> http://sourceforge.net/tracker/?group_id=5470&atid=305470
>
> (it's not obvious how to get there, so it's probably easiest if you just
> click on the
> above link ;
Laszlo Nagy írta:
> Hello,
>
> I'm trying to write a very simple program that moves all messages from
> INBOX into another folder.
> I'm not sure what am I doing wrong. This is a very simple task. I
> believe I need to call these methods:
>
> - search -> get all message UIDs in the INBOX
> - co
[Fredrik]
> oops. thought you were using ctypes, not the pythonwin extensions.
Even when I'm using ctypes I use win32con for the constants, unless
there's some special reason why I need the code to be independent of
pywin32.
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman
[Etayki]
> OK, so it it turns out, the window will maximize when SW_MAXIMIZE =3.
> But where can I find some documentation for that?
ShowWindow is a Win32 API call, so Googling within msdn.microsoft.com will
usually get you straight to the relevant documentation:
http://www.google.com/search?q=S
>> How do I get SW_MAXIMIZE to be defined?
>
> by grepping through the Windows header files to see what the corresponding
> value is, and using that value to set a Python variable in your script
oops. thought you were using ctypes, not the pythonwin extensions. see
richie's
reply for pythonwin
"Etayki" <[EMAIL PROTECTED]> wrote:
> I'm trying to maximize a IE window. I have a handler and I'm trying to
> call ShowWindow to maximize it:
>
> ie = Dispatch('InternetExplorer.Application')
> handler = ie.HWND
> ie.Visible = 1
> win32gui.ShowWindow(handler, SW_MAXIMIZE)
>
> But then I get this
OK, so it it turns out, the window will maximize when SW_MAXIMIZE =3.
But where can I find some documentation for that?
Etayki wrote:
> Hi!
>
> I'm trying to maximize a IE window. I have a handler and I'm trying to
> call ShowWindow to maximize it:
>
> ie = Dispatch('InternetExplorer.Application')
[Etayki]
> How do I get SW_MAXIMIZE to be defined?
It's in win32con. Like this:
>>> from win32con import *
>>> SW_MAXIMIZE
3
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Hi!
I'm trying to maximize a IE window. I have a handler and I'm trying to
call ShowWindow to maximize it:
ie = Dispatch('InternetExplorer.Application')
handler = ie.HWND
ie.Visible = 1
win32gui.ShowWindow(handler, SW_MAXIMIZE)
But then I get this error:
'SW_MAXIMIZE' is not defined
The functio
Sybren Stuvel schrieb:
> Diez B. Roggisch enlightened us with:
>> Of course not. AFAIK there is no way figuring out which encoding the
>> target console supports. The best you can do is to offer an option
>> that allwos selection of the output encoding.
>
> You can use the LANG environment variabl
1 - 100 of 148 matches
Mail list logo