Re: in Python: (101 102 103 201 202 203 301 302 303 401 402 403 )

2024-06-13 Thread Phil Carmody via Python-list
an never train it. I'd say you can't beat the verbosity, or lack thereof of just plain zsh/bash: $ echo {1,2,3,4}0{1,2,3} 101 102 103 201 202 203 301 302 303 401 402 403 Phil -- We are no longer hunters and nomads. No longer awed and frightened, as we have gained some understanding

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
to monitor them and modify them on the fly based on...some parameters that are unclear. But, once again, your way is clearly better, then go ahead and fill your boots on doing it your way. What do we know? Good luck to you. It once again appears that we are at an impasse. Let us know how it

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
really want a phone listening to this speaker while recording, and then...er...what? Feed that to the speaker again? This is a level of masochism that the Marquis de Sade would blush at. Phil -- AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4 ph...@philb.ca http://phil

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
asier > on the ear. Once again, what you are telling the speaker to play is a pre-recorded file. Grab it. Normalize it however you want (compared to others, compared to set specs, compared to whatever tickles your fancy). Tell the speaker to play *that* file instead. Done. Phil -- AH#61 Wolf#

Re: Automatic Gain Control in Python?

2022-06-06 Thread Phil Boutros
iles as they are. As pretty much everyone else has said. Insisting on real-time processing of something that is itself pre-recorded is non-sensical. Phil -- AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4 ph...@philb.ca http://philb.ca -- https://mail.python.org/mailman/listinfo/python-list

Re: Automatic Gain Control in Python?

2022-05-31 Thread Phil Boutros
previous values to make it match? Where is that stored? >> It has nothing to do with understanding how to grab podcasts. The >> system is working very well for that. OK...then perhaps I/we am/are confused on the limitations of the program. What does it "grab", *e

Re: learning python building 2nd app, need advices

2021-01-13 Thread Phil Boutros
t, you can do ':retab ', where is an integer defining how many spaces to replace a tab with. Don't add the quote symbols ('), I added it for readability! As others have mentionned, 'expand' from the shell also works. Phil -- AH#61 Wolf#14 BS#89

Re: C API PyObject_GetAttrString returns not the object I expected

2019-02-10 Thread Phil Thompson
bject > I > want? The "String" part of "PyObject_GetAttrString()" refers to the way you provide the attribute name and not the type of the object returned. Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: Python "Bad syntax"

2018-02-05 Thread Phil Boutros
Phil Boutros wrote: > > Which version of python are you using? That syntax for "print" > started in python 3 (since print became a function). > > Try adding: > > from __future__ import print_function > > before your code if you're still using pyth

Re: Python "Bad syntax"

2018-02-05 Thread Phil Boutros
onfirming the > "else" function. How is it possible? Using the Bad Version of > Python? Please, please, thank you very much! Which version of python are you using? That syntax for "print" started in python 3 (since print became a function). Try adding: from __future__ import print_function before your code if you're still using python 2.x Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: I need a lot of help...

2016-12-24 Thread Phil Boutros
raulmaqueda6...@gmail.com wrote: > I do not know how to do this exercise, does anyone help me? If you have a specific, precise question, that's one thing. Otherwise: http://lmgtfy.com/?q=Academic+Dishonesty Phil -- AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4 h...@philb.

Re: SIP install error on windows

2016-12-12 Thread Phil Thompson
f supported macros. Try the documentation... http://pyqt.sourceforge.net/Docs/sip4/installation.html Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: SIP install error on windows

2016-12-12 Thread Phil Thompson
m >> i try to install from cmd line : >> >> C:\WINDOWS\system32>cd C:\Users\username\Desktop\sip-4.17 >> >> C:\Users\username\Desktop\sip-4.17>python configure.py install >> and take that error any idea ? > The instructions at Riverbank for installing sip

Re: Qtimer and extra argument

2016-10-26 Thread Phil Thompson
On 26 Oct 2016, at 1:29 pm, luca72 via Python-list wrote: > > I get () missing 1 required positional argument: 's' Sorry, it should have been... lambda: self.metto_testo(testo) Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: Qtimer and extra argument

2016-10-26 Thread Phil Thompson
self.timer.singleShot(1000, lambda s: self.metto_testo(testo)) Phil -- https://mail.python.org/mailman/listinfo/python-list

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

2016-10-19 Thread Phil Thompson
t how to knock something up using .NET, > or a HTA file, for example, I'm just more comfortable coding in Python. The Chrome-based QWebEngineView (http://doc.qt.io/qt-5/qwebengineview.html) is fully supported by PyQt. Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-04 Thread Phil Thompson
On 4 Oct 2016, at 5:57 am, John Ladasky wrote: > > On Monday, October 3, 2016 at 1:30:29 AM UTC-7, Phil Thompson wrote: >> On 3 Oct 2016, at 4:29 am, John Ladasky wrote: > >>> And as you can see: trying to call versionFunctions() is exactly where my >>> pro

Re: PyQt5, OpenGL, where to start, minimal example code?

2016-10-03 Thread Phil Thompson
OpenGL >> version and profile is done in the same way as it is done from C++, i.e. by >> calling versionFunctions(). In addition, the bindings object also contains >> attributes corresponding to all of the OpenGL constants. > > And as you can see: trying to call versionFunctions() is exactly where my > program failed. Try passing a QOpenGLVersionProfile object to versionFunctions() that has a version set to one supported by PyQt. Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: Specify the database for a Django ModelForm instance

2016-08-10 Thread Phil Boutros
multi-DB myself, but I think this set of answers may point you in the right direction: http://stackoverflow.com/questions/35214706/django-model-form-is-valid-in-specific-database Phil -- AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4 ph...@philb.ca http://philb.ca EKI

Re: Specify the database for a Django ModelForm instance

2016-08-09 Thread Phil Boutros
ave, > etc.)? You would specify it on the save method (using the same "using='foo'") paremeter. Do your work between calling save with commit=false and doing the real save. For example: http://stackoverflow.com/questions/37740848/use-a-specific-database-with-a-modelfo

ANN: PyQt v5.7 Released

2016-07-26 Thread Phil Thompson
be installed. Source packages and more information can be found at https://www.riverbankcomputing.com/. Phil Thompson -- https://mail.python.org/mailman/listinfo/python-list

Re: ASCII or Unicode? (was best text editor for programming Python on a Mac)

2016-06-19 Thread Phil Boutros
re's how it's done on vim: Ctrl-K, =, ! (last two steps interchangeable). Done. Result: ≠ It's still probably a horrible idea to have it in a programming language, though, unless the original behaviour still also works. Phil -- AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#

Re: PyQt5 not found from Python

2016-02-21 Thread Phil Thompson
last): File "", line 1, in ImportError: No module named 'PyQt5' So i guess Python does not see the QT stuff. What can i do about it? TIA There are no PyQt installers for Python 3.5 yet. There will be when PyQt v5.6 is released. Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: problem building python 3.5 extensions for windows

2015-09-21 Thread Phil Thompson
quot;Common Tools for Visual C++ 2015" as the only feature. That gave me command shells in the start menu for native and cross-compilers. Phil -- https://mail.python.org/mailman/listinfo/python-list

PyQt v5.5 Released

2015-07-19 Thread Phil Thompson
PyQt5 v5.5 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of The Qt Company's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include

Re: Make standalone gui-enabled app for LINUX

2015-03-05 Thread Phil Thompson
ouble even for new or less experienced linux users. So again how can i make a portable python3 + gui(pygobject, qt, wx) for linux? I found some helpful guide for windows, but what about linux? I haven't announced this on the list yet, but... http://pyqt.sourceforge.net/Docs/pyqtdeploy/

ANN: PyQt v5.4 Released

2014-12-26 Thread Phil Thompson
PyQt5 v5.4 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include support

Re: python on android: where to start

2014-11-14 Thread Phil Thompson
resources to start with? PyQt4 or PyQt5 with pyqtdeploy... http://pyqt.sourceforge.net/Docs/pyqtdeploy/ Phil -- https://mail.python.org/mailman/listinfo/python-list

ANN: PyQt v5.3 Released

2014-05-28 Thread Phil Thompson
PyQt5 v5.3 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include support

Re: object().__dict__

2014-04-23 Thread Phil Connell
On Wed, Apr 23, 2014 at 04:21:26PM +0200, Amirouche Boubekki wrote: > 2014-04-23 15:59 GMT+02:00 Phil Connell : > > > On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: > > > 2014-04-23 8:11 GMT+02:00 Cameron Simpson : > > > > Look up the "__

Re: object().__dict__

2014-04-23 Thread Phil Connell
ge from the JIT vs the CPython VM (with a reasonable amount of code)? I'd thought that one of the main disadvantages of PyPy was drastically increased memory usage for any decent-sized program. Would be interested to know if this was not the case :) Cheers, Phil -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple question

2014-04-15 Thread Phil Dobbin
On 15/04/2014 20:07, Chris Angelico wrote: > On Wed, Apr 16, 2014 at 5:02 AM, Phil Dobbin wrote: >> On 15/04/2014 19:41, Chris Angelico wrote: >> >>> Recommendation: If you don't understand something, keep it there :) >>> You can just copy and paste f

Re: Simple question

2014-04-15 Thread Phil Dobbin
On 15/04/2014 19:41, Chris Angelico wrote: > On Wed, Apr 16, 2014 at 4:31 AM, Phil Dobbin wrote: >> I saw the 'e-17' appended to the end but was unsure of its meaning ( >> quite a number of things are introduced in the book with clarification >> of their meanin

Re: Simple question

2014-04-15 Thread Phil Dobbin
On 15/04/2014 19:30, Robert Kern wrote: > On 2014-04-15 19:18, Phil Dobbin wrote: >> Hi, all. >> >> I've just started to learn Python (I'm reading Mark Lutz's 'Learning >> Python' from O'Reilly) & I'm confused as to this part: >

Re: Simple question

2014-04-15 Thread Phil Dobbin
On 15/04/2014 19:25, Zachary Ware wrote: > On Tue, Apr 15, 2014 at 1:18 PM, Phil Dobbin wrote: >> Hi, all. >> >> I've just started to learn Python (I'm reading Mark Lutz's 'Learning >> Python' from O'Reilly) & I'm con

Simple question

2014-04-15 Thread Phil Dobbin
er result i.e. 'Decimal('0.0')' What I'm wondering is why the first calculation that arrives at '5.55111...' is so far out? Many thanks, Cheers, Phil... -- currently (ab)using CentOS 6.5, Debian Squeeze & Wheezy, Fedora 19 & 20, OS X Snow Leopard,

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Phil Dobbin
will be 2020. Cheers, Phil... -- currently (ab)using CentOS 6.5, Debian Squeeze & Wheezy, Fedora 19 & 20, OS X Snow Leopard, RHEL 7, Ubuntu Precise & Saucy GnuGPG Key : http://phildobbin.org/publickey.asc Based in London, UK -- https://mail.python.org/mailman/listinfo/python-list

Re: Using asyncio for serial port

2014-02-11 Thread Phil Connell
simple serial device. > > Any advice on where to proceed would be very much appreciated! You might have more luck on the python-tulip list/group. Asyncio is still very new for most people :) Cheers, Phil > > Thanks! > > James > -- > https://mail.python.org/mailman/list

Re: Trying to wrap my head around futures and coroutines

2014-01-15 Thread Phil Connell
ame, coro = yield from run_queue.get() running_task_name = name running_task = asyncio.async(coro) yield from running_task def main(): ... cancel_task = asyncio.Task(canceller()) run_task = asyncio.Task(runner()) ... Cheers, Phil -- https://mail.python.org/mailman/listinfo/python-list

ANN: PyQt v5.2 Released

2014-01-07 Thread Phil Thompson
PyQt5 v5.2 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include full sup

Re: Periodic execution with asyncio

2013-11-25 Thread Phil Connell
something more like: - Spawn some tasks - Run the event loop until they're done - Exit then you'll need to use loop.run_until_complete(asyncio.gather(*tasks)) instead. HTH, Phil -- https://mail.python.org/mailman/listinfo/python-list

ANN: PyQt5 v5.1 Released

2013-10-02 Thread Phil Thompson
PyQt5 v5.1 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/download5. PyQt5 is a comprehensive set of bindings for v5 of Digia's Qt cross-platform application framework. It supports Python v3, v2.7 and v2.6. The highlights of this release include full supp

Re: Using PyQT with QT Designer

2013-08-23 Thread Phil Thompson
.but I would like to learn to do this. http://qt-project.org/doc/qt-4.8/designer-manual.html Designer has a preview option that creates your UI on the fly. The first step would be to get it working as far as you can with that before you try generating any Python code. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Using PyQT with QT Designer

2013-08-23 Thread Phil Thompson
h.... there has to be a way to > use the work qt designer did. I strongly suggest you do some more reading about using Designer. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Using PyQT with QT Designer

2013-08-23 Thread Phil Thompson
On Thu, 22 Aug 2013 18:08:14 -0700 (PDT), tausc...@gmail.com wrote: > On Thursday, August 22, 2013 3:26:17 AM UTC-5, Phil Thompson wrote: > >> It looks like you aren't using a layout to arrange your widgets. >> >> Explicitly specifying geometries is a bad idea. >&

Re: Using PyQT with QT Designer

2013-08-22 Thread Phil Thompson
or i,picture in enumerate(pictures): > col=i%IMAGES_PER_ROW > if not col: row+=1 > self.tableWidget.addPicture(row, col, > pictureDir.absoluteFilePath(picture)) > > if __name__=="__main__": > from sys import arg

Re: many constructors in a class?

2013-08-14 Thread Phil Le Bienheureux
> Thanks for your answer. > -- > http://mail.python.org/mailman/listinfo/python-list > Hello, You have to use default values in __init__ function, like : def __init__( self, name = None ): self.name_ = name and afterwards in your code, test variable : if self.name_:

Re: OT: e-mail reply to old/archived message

2013-06-11 Thread Phil Connell
On 12 Jun 2013 02:20, wrote: > > How can i be able to answer you guys posts by my mail client? Don't delete mails that you might want to reply to. If you do anything else, you're just making it difficult for yourself. Cheers, Phil > -- > http://mail.python.org/mailma

Re: Split a list into two parts based on a filter?

2013-06-11 Thread Phil Connell
maxlen=0 - this consumes the iterator with constant memory usage. We are of course firmly in the twilight zone at this point (although this can be a useful technique in general). Cheers, Phil > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

RE: Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-27 Thread Phil Connell
On 28 May 2013 02:21, "Carlos Nepomuceno" wrote: > > > > Date: Mon, 27 May 2013 17:58:00 -0700 > > Subject: Re: Total Beginner - Extracting Data from a Database Online (Screenshot) > > From: logan.c.gra...@gmail.com > > To: python-list@python.org > [...] >

Re: Serial Port Issue

2013-04-22 Thread Phil Birkelbach
Have you tried 'port=20'? The documentation says that the port numbering starts at zero. I don't use Windows so I can't test it for you. You could also try port="COM21" Phil On Apr 22, 2013, at 4:34 AM, chandan kumar wrote: > Hi, > > I

Re: import in Python3.3

2013-03-26 Thread Phil Connell
On Tue, Mar 26, 2013 at 08:37:00AM -0700, rocky wrote: > And again, I get the impression that for the use case asked about, there > isn't much ambiguity. If I am in mypackage.foo and I want to access > mypackage.collections I should be able to say something like that without > ambiguity or that

Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread Phil Thompson
On Wed, 20 Mar 2013 03:29:35 -0700 (PDT), jmfauth wrote: > On 20 mar, 10:30, Phil Thompson wrote: >> On Wed, 20 Mar 2013 02:09:06 -0700 (PDT), jmfauth >> wrote: >> >> >> >> >> >> >> >> >> >> > On 20 mar, 01:12, &qu

Re: Help. HOW TO guide for PyQt installation

2013-03-20 Thread Phil Thompson
rbank's website? I think i noticed somewhere an other reseller >> "cheaper one" or maybe i didnt know what the hell i was reading :). Maybe >> something about Qt and not PyQt. >> >> Please help this noob, >> Regards > > > > Short answer without explanation. It does not work. > > jmf Well it works for me. Care to elaborate? Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Read arrow keys

2013-02-21 Thread Phil
On 21/02/13 13:36, Ned Deily wrote: In article <51255c8a.7090...@bigpond.com>, Phil wrote: I'm attempting to put a simple remote control program together and to do so I need to check if the arrows are pressed. I could probably do this with pyqt4 but I'm looking for som

Read arrow keys

2013-02-20 Thread Phil
the error message makes me think that pygame doesn't work from the console: "video system not initialized" Is there a simple way to read the direction keys within a while loop? -- Regards, Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a graphical GUI builder?

2013-02-20 Thread Phil Thompson
but that is just wrong. You position the widgets roughly, select them, then click on the button corresponding to the layout you want to apply. By selecting a sub-set of the widgets you can create a sub-layout which itself can be part of a parent layout. You therefore create any sort of layout you want without specifying a single pixel position or size. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a graphical GUI builder?

2013-02-20 Thread Phil Thompson
lt way. You could use explicit sizes and positions if you wanted to, but that would be bad for the reasons you gave. Qt does have a container concept - that's what a QWidget is (the base class of all widgets). Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a graphical GUI builder?

2013-02-19 Thread Phil
for Python to build GUIs. I see that there is TKinter, which is a scripting function to build GUIs. To be clear, I'm looking for a graphical interface to build GUIs. Thanks. I'm new to Python myself and the best IDE that I've found is Eric. -- Regards, Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Eric - "No module named MainWindow"

2013-02-18 Thread Phil
On 18/02/13 18:07, Vincent Vande Vyvre wrote: Le 18/02/13 00:04, Phil a écrit : ... from PyQt4 import QtCore, QtGui from ui.MainWindow import MainWindow As I've sayed in my last post, this is not "ui.MainWindow" but "ui.mainwindow" Thanks again Vincent, Your a

Re: Eric - "No module named MainWindow" - solved

2013-02-17 Thread Phil
On 17/02/13 21:35, Vincent Vande Vyvre wrote: Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the Eric site and I'm sure that I ha

Re: Eric - "No module named MainWindow"

2013-02-17 Thread Phil
On 17/02/13 21:35, Vincent Vande Vyvre wrote: Le 17/02/13 10:08, Phil a écrit : Thank you for reading this. I've been playing with Eric all day and I almost have a working GUI application, but not quite. I have followed the two tutorials on the Eric site and I'm sure that I ha

Eric - "No module named MainWindow"

2013-02-17 Thread Phil
missing from my system or perhaps a path error. This is the error message: The debugged program raised the exception unhandled ImportError "No module named MainWindow" File: /home/phil/main.py, Line: 4 And this is the code: !/usr/bin/python from PyQt4.QtGui

Re: Calendar module question

2013-02-17 Thread Phil
On 17/02/13 18:40, James Griffin wrote: - Phil [2013-02-17 17:47:15 +1000] - : Thank you for reading this. My adventures with Python have just begun and during the few weeks I have tried many IDEs. The following piece of code fails under all IDEs, and the interpreter, except under

Re: Calendar module question

2013-02-17 Thread Phil
On 17/02/13 18:01, Andrew Berg wrote: On 2013.02.17 01:47, Phil wrote: Why would this code work under the Wing IDE and nowhere else? Could there be a different calendar module included with Wing? import calendar cal = calendar.prcal(2013) print cal Traceback (most recent call last): File

Calendar module question

2013-02-16 Thread Phil
be a different calendar module included with Wing? import calendar cal = calendar.prcal(2013) print cal Traceback (most recent call last): File "calendar.py", line 1, in import calendar File "/home/phil/calendar.py", line 3, in cal = calendar.prcal(2013) Att

Re: Dynamic comparison operators

2012-05-24 Thread Phil Le Bienheureux
Hello, You can pass an operator as an argument to your function. See : http://docs.python.org/library/operator.html Regards, -- Forwarded message -- From: Date: 2012/5/24 Subject: Dynamic comparison operators To: python-list@python.org I would like to pass something like thi

RE: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Phil Runciman
ts and culture that we do not recognize in ourselves." Wikipedia. The process of eliciting tacit knowledge may be time consuming and require patience and skill. The following book covers aspects of this: Nonaka, Ikujiro; Takeuchi, Hirotaka (1995), The knowledge creating company: how Japanese companies create the dynamics of innovation. Phil Runciman -- http://mail.python.org/mailman/listinfo/python-list

RE: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Phil Runciman
llowed by machine code, using a piece of software for this purpose. This all sounds rather similar to Mark's situation. The reason however is less obvious. On the H16 series we did not have a multi-access O/S and the process of assembling and linking a large system involved many steps. Often the modifications required were trivial. It was generally easier to reload a memory dump from off paper tape and then apply the patches. Phil Runciman -- http://mail.python.org/mailman/listinfo/python-list

RE: The devolution of English language and slothful c.l.p behaviours exposed!

2012-01-24 Thread Phil Runciman
now because the impending avalanche of bookings out for modification may take them by surprise, especially the number of requests from the North America and Australia. Here in New Zealand, they gave up attempting to use correct English years ago. Phil Runciman > -Original Message- >

ANN: PyQt v4.9 Released (Python bindings for Qt)

2011-12-23 Thread Phil Thompson
PyQt v4.9 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/. PyQt is a comprehensive set of bindings for the Qt application and UI framework from Nokia. It supports the same platforms as Qt (Windows, Linux and MacOS/X). PyQt supports Python v3 and Python v2

Re: String splitting by spaces question

2011-11-23 Thread Phil Rist
In article <3f19e4c0-e010-4cb2-9f71-dd09e0d3c...@r9g2000vbw.googlegroups.com>, Massi says... > >Hi everyone, > >I have to parse a string and splitting it by spaces. The problem is >that the string can include substrings comprises by quotations which >must mantain the spaces. What I need is to pass

Running Idle on Windows 7

2011-11-23 Thread Phil Rist
I have installed ActiveState Python 32bit on my computer. There are potentially five different ways that Idle can be run. Actually six if you include activating a command window and typing in the command. We will not do that here. The first way is to use the shortcut put into the start menu by

Stack Architecture - was "Good books in computer science?"

2011-10-24 Thread Phil Runciman
rammers. Are hardware designers considering the compiler writers' problems when they design their hardware? This would be heavy irony indeed. That is why stacks came into existence in the first place. Regards, Phil References: http://is.uwaterloo.ca/Eric_LaForest_Thesis.pdf discus

Re: installeventfilter

2011-10-11 Thread Phil Thompson
ventFilter(self, object, event): # example: window is resized if event.type() == QEvent.Resize: object.resize() return True event_filter = EventFilter() form = Form() form.installEventFilter(event_filter) Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Help on PyQt4 QProcess

2011-08-20 Thread Phil Thompson
On Fri, 19 Aug 2011 14:32:12 -0700 (PDT), Edgar Fuentes wrote: > On Aug 19, 4:21 pm, Carl Banks wrote: >> On Friday, August 19, 2011 12:55:40 PM UTC-7, Edgar Fuentes wrote: >> > On Aug 19, 1:56 pm, Phil Thompson >> >  wrote: >> > > On Fri, 19 Aug 2

Re: Help on PyQt4 QProcess

2011-08-19 Thread Phil Thompson
tput().data()) > > output: > >started >0 > b'hello world!\n' > > see that not emit the signal finished(int) Yes it is, and your lambda slot is printing "0" which is the return code of the process. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: International translation of docs - is it a scam?

2011-06-07 Thread Phil Thompson
permission to translate a page from the PyQt site. I agreed to this and was given a link containing the translation. I declined to link to the page from my site (I will only link to sites with a proven track record.) I note that the page has now been removed. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: ipython: Multiple commands on the same line and newlines

2011-04-17 Thread Phil Winder
On Apr 17, 1:11 pm, Andrea Crotti wrote: > Phil Winder writes: > > Yes, that does not produce an error, but it does not "work". Please > > refer to my first post. Try the first code, you will get a syntax > > error. Placing things on one line makes for easy

Re: ipython: Multiple commands on the same line and newlines

2011-04-16 Thread Phil Winder
On Apr 16, 5:29 pm, Andrea Crotti wrote: > Phil Winder writes: > > Hi, > > I'm having a go at using ipython as a command prompt for data > > analysis. Coming from Matlab, I'm used to typing multiple commands on > > the same line then using the up arrow to

[Q] ipython: Multiple commands on the same line and newlines

2011-04-16 Thread Phil Winder
x = x + 1; " It seems to work automatically for the "while xxx:", but combinations of keys+enter do not work for "normal" lines. Cheers, Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT: QWebView with custom QNetworkAccessManager

2011-02-02 Thread Phil Thompson
On Wed, 02 Feb 2011 10:53:54 +0100, Gelonida Gmail wrote: > Hi Phil, > > On 02/02/2011 09:28 AM, Phil Thompson wrote: >> On Wed, 02 Feb 2011 02:37:06 +0100, Gelonida wrote >> >> In fact my first experiments failed horribly due to a tiny PyQt detail. >>

Re: PyQT: QWebView with custom QNetworkAccessManager

2011-02-02 Thread Phil Thompson
tiny PyQt detail. > > I expected that, the variable new_manager does not have to be persistent. > > I naively assumed, that a call to setNetworkAccessManager() would keep a > reference to new_manager and thus avoid its destruction this does not > seem to be the case. It is the case in current versions. Phil -- http://mail.python.org/mailman/listinfo/python-list

ANN: PyQt v4.8.1 Released

2010-11-01 Thread Phil Thompson
PyQt v4.8.1 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/. PyQt is a comprehensive set of bindings for the Qt application and UI framework from Nokia. It supports the same platforms as Qt (Windows, Linux and MacOS/X). PyQt supports Python v3 and Python

Re: Why is there no platform independent way of clearing a terminal?

2010-07-27 Thread Phil Thompson
creen. It then writes those characters to stdout. The terminal, or (more usually these days) terminal emulator, then interprets those characters and takes the appropriate action. I'm not sure what the POSIX status of the clear command is, but I'd be surprised if it wasn't present on a UNIX/Linux system of any vintage. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: First program

2010-06-15 Thread Phil Hansen
On Tue, 15 Jun 2010 04:53:52 -0300, Gabriel Genellina wrote: > Looks like you created helloworld.py on Windows, or using > Windows-oriented tools (perhaps a samba drive? ftp from a Windows disk?) > Windows text files end each line with the \r\n sequence (CR LF, bytes > 0x0D 0x0A, ^M^J). Unix (and L

Re: First program

2010-06-12 Thread Phil Hansen
On Sat, 12 Jun 2010 12:51:18 +0200, Peter Otten wrote: > Phil H wrote: >> The script was written using Gedit on Ubuntu. > > Strange. Did you perhaps start with a file that you got from elsewhere > and modified that? Gedit may have left the CRs untouched then. > >&g

Re: First program

2010-06-12 Thread Phil H
On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote: > Hi, > Trying my hand with Python but have had a small hiccup. Reading 'A byte > of Python' and created helloworld.py as directed. > > Any help appreciated > Phil Thanks Peter & Chris for your prompt replies.

First program

2010-06-12 Thread Phil H
interpreter: No such file or directory The permissions are: rwxr-xr-x. Any help appreciated Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt signals/slots dialogs question

2010-06-07 Thread Phil Thompson
hing this the right way, with a method > per action per dialog to move through the dialogs, and just how do I > setup the connections I need. I'm getting confused with scope etc. IE: > if the connect is right, and WelcomeNext fires, how can it refer to > myapp.SourceTypeSelect.show() or myapp.Welcome.hide() > > > Any help much appreciated. Sounds like you are trying to build a wizard the hard way. Use Designer to create a QWizard with the contents of each of your dialogs as a QWizardPage. Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with QtSignals "object has no attribute 'emit'"

2010-02-14 Thread Phil Thompson
that, i.e. it won't look into your sigarr list. Even if it did, there is a second issue. Signals have unbound and bound versions (much like unbound and bound methods). The class attribute is an unbound signal that is a descriptor that will return the bound signal. It is the bound

Generic spreadsheet interface

2010-02-10 Thread Phil Hibbs
so it can work with Excel or OOo?" - then I thought of Python. Python can interface with both, but the specifics of how to interface with each are very different. What would be nice is a generic wrapper class that can work with either. Has anyone come across anything like that? Phil Hib

PyQt v4.7 Released

2010-01-21 Thread Phil Thompson
PyQt v4.7 has been released and is available from http://www.riverbankcomputing.com/software/pyqt/. PyQt is a comprehensive set of bindings for the Qt application and UI framework from Nokia. It supports the same platforms as Qt (Windows, Linux and MacOS/X). PyQt supports Python v3 and Python v2

SIP v4.10 Released (Python Bindings Generator)

2010-01-21 Thread Phil Thompson
SIP v4.10 has been released and can be downloaded from http://www.riverbankcomputing.com/software/sip/. SIP is a tool for generating Python modules that wrap C or C++ libraries. It is similar to SWIG. It is used to generate PyQt and PyKDE. The SIP license is similar to the Python License and is

Re: Problem with wsgiref.headers.Headers

2010-01-15 Thread Phil
I left one crucial detail out. My concern was the fact that the original headers list being wrapped ('list' in my example) is not being updated. -- http://mail.python.org/mailman/listinfo/python-list

Problem with wsgiref.headers.Headers

2010-01-15 Thread Phil
list it was created with. Thanks for any help, Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQT 4.6.2 question about radiobuttons

2010-01-14 Thread Phil Thompson
e buttongroup, that would fire? QButtonGroup.buttonClicked() > 2.) if not. What is the easiest way to get a list of all radiobuttons > belonging to a buttongroup QButtonGroup.buttons() > Thanks in advance for your any suggestions good pointers http://www.riverbankcomputing.com/static/Docs/PyQt4/html/qbuttongroup.html Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: PyQt QThreadPool error

2010-01-08 Thread Phil Thompson
On Thu, 7 Jan 2010 15:07:10 -0800 (PST), h0uk wrote: ... > Phil you right about app.exec_(). But situation is sligthly different. > > I want to have more than one Job. I add these Jobs into QThreadPool > trough cycle. And I also want these Jobs to run sequentially. > >

Re: PyQt QThreadPool error

2010-01-07 Thread Phil Thompson
to = auto > > > > if __name__ == "__main__": > > app = QtGui.QApplication(sys.argv) > > QtCore.QThreadPool.globalInstance().setMaxThreadCount(1) > > j = Job("Job-1") > j.setAutoDelete(True) > QtCore.QThrea

Re: imports in __init__.py

2009-12-18 Thread Phil
I wrote my last message late last night. When I said "I am unable to import a module from the package without an import error.", I did mean the 'modulename' module. However, I just set up a Debian VM with Python 2.5.2 and what I was trying to do works. So it is either something that changed with P

  1   2   3   4   5   >