On 11/18/2014 12:59 PM, sohcahto...@gmail.com wrote:
On Tuesday, November 18, 2014 12:14:15 AM UTC-8, Larry Hudson wrote:
First, I'll repeat everybody else: DON'T TOP POST!!!
On 11/16/2014 04:41 PM, Abdul Abdul wrote:
Dave,
Thanks for your nice explanation. For your answer on one of my quest
Abdul Abdul Wrote in message:
> I came across an example that starts as follows:
>
> from scipy.ndimage import filters
> img = zeros(im.shape)
>
> What does the second line mean here? Is it setting the image pixels to zero?
> What is "shape" here?
>
This example is incomplete. Neither zeros n
On Wed, Nov 19, 2014 at 2:02 PM, alex23 wrote:
> On 17/11/2014 1:06 PM, Chris Angelico wrote:
>>
>> You could then name it in Hebrew: Paamayim Nekudotayim. There is
>> excellent precedent for this - it's done by a language in whose
>> footsteps Python strives to follow.
>
>
> The first time I got
On 17Nov2014 20:26, John Gordon wrote:
I'm working with a third-party API and I'm seeing some behavior that I
can't explain.
The API uses the HTTP PATCH operation to set user passwords, and in
case of unacceptable passwords, the response is supposed to be an HTML
document containing a diagnosti
On 17/11/2014 1:06 PM, Chris Angelico wrote:
You could then name it in Hebrew: Paamayim Nekudotayim. There is
excellent precedent for this - it's done by a language in whose
footsteps Python strives to follow.
The first time I got a T_PAAMAYIM_NEKUDOTAYIM error, I just about
flipped my desk in
On 2014-11-19 02:30, Abdul Abdul wrote:
I came across an example that starts as follows:
from scipy.ndimage import filters
img = zeros(im.shape)
What does the second line mean here? Is it setting the image pixels to
zero? What is "shape" here?
It looks like it might be using numpy.
If 'im' i
I came across an example that starts as follows:
from scipy.ndimage import filters
img = zeros(im.shape)
What does the second line mean here? Is it setting the image pixels to
zero? What is "shape" here?
Thanks.
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Nov 19, 2014 at 5:15 AM, Juan Christian
wrote:
>
> Thanks, it's working. What would be a "professional" approach if I want to
> constantly call a URL to get it's content and access this data within the
> GUI?
>
"Constantly" doesn't make much sense when you're talking about network
operati
re:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Intel Atom>pip install html5lib
Downloading/unpacking html5lib
Running setup.py (path:c:\users\intela~1\appdata\local\temp\pip_build_Intel At
om\html5lib\setup.py) egg_info for pac
Chris Angelico Wrote in message:
> On Wed, Nov 19, 2014 at 6:09 AM, Dave Angel wrote:
>> I once worked on (and then
>> fixed) a build system that could not complete a build from clean.
>> It needed some pieces from a previous build in order to get to
>> the point where it was ready to build th
Roy Smith wrote:
> In article <54694389$0$13001$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> Chris Angelico wrote:
>>
>> > You should be able to use two semicolons, that's equivalent to one
>> > colon right?
>> >
>> > ChrisA
>> > (No, it isn't, so don't take this advice.
On 18/11/2014 21:55, Simon Evans wrote:
Dear Programmers,
I have installed the HTMLParserTreebuilder and LXMLTreeBuilder downloads to my
Python2.7 console, using the Windows Console 'pip install' procedure.
I downloaded HTML5 files and installed them to my Python2.7 directory, and went
through
In Simon Evans
writes:
> I downloaded HTML5 files and installed them to my Python2.7 directory,
> and went through the 'pip install' procedure, but this did not work.
> html5lib-0.999(1).tar.gz
> html5lib-0.999.tar.gz
> HTMLParser-0.0.2.tar.gz
Those first two files seem identical. Did you m
Dear Programmers,
I have installed the HTMLParserTreebuilder and LXMLTreeBuilder downloads to my
Python2.7 console, using the Windows Console 'pip install' procedure.
I downloaded HTML5 files and installed them to my Python2.7 directory, and went
through the 'pip install' procedure, but this did
On Tuesday, November 18, 2014 12:14:15 AM UTC-8, Larry Hudson wrote:
> First, I'll repeat everybody else: DON'T TOP POST!!!
>
> On 11/16/2014 04:41 PM, Abdul Abdul wrote:
> > Dave,
> >
> > Thanks for your nice explanation. For your answer on one of my questions:
> >
> > *Modules don't have method
On Wed, Nov 19, 2014 at 6:09 AM, Dave Angel wrote:
> I once worked on (and then
> fixed) a build system that could not complete a build from clean.
> It needed some pieces from a previous build in order to get to
> the point where it was ready to build those pieces. Recursive
> depencies at co
Ian Kelly Wrote in message:
> On Mon, Nov 17, 2014 at 6:20 PM, Dave Angel wrote:
>> Ian Kelly Wrote in message:
>>> On Mon, Nov 17, 2014 at 3:17 PM, Dave Angel wrote:
>>
In a module that might get tangled in a cycle, avoid global code
that depends on other modules. Instead of puttin
>
> You can't have a slot like this:
>
> MainWindow.btn.clicked.connect(MainWindow.txtbox.setText(test()))
>
> because that's mean: "connect to the return of
> MainWindow.txtbox.setText(test())" and it's not possible at this stage
> of your program.
>
> Use instead a function:
>
> MainWindow.btn.cl
Le 18/11/2014 15:49, Juan Christian a écrit :
I was doing some tests, then I tried this:
app = QApplication(sys.argv)
MainWindow = loadui("main.ui")
MainWindow.btn.clicked.connect(MainWindow.txtbox.setText(test()))
MainWindow.show()
app.exec_()
But I get "RuntimeError: Failed to connect signal
On Mon, Nov 17, 2014 at 6:20 PM, Dave Angel wrote:
> Ian Kelly Wrote in message:
>> On Mon, Nov 17, 2014 at 3:17 PM, Dave Angel wrote:
>
>>> In a module that might get tangled in a cycle, avoid global code
>>> that depends on other modules. Instead of putting such
>>> initialization at top le
I was doing some tests, then I tried this:
app = QApplication(sys.argv)
MainWindow = loadui("main.ui")
MainWindow.btn.clicked.connect(MainWindow.txtbox.setText(test()))
MainWindow.show()
app.exec_()
But I get "RuntimeError: Failed to connect signal clicked().", why?
The syntax is correct, I don
Leo 5.0b2 is now available at:
http://sourceforge.net/projects/leo/files/Leo/
This release fixes several installation issues
and updates installation instructions for Linux/Ubuntu.
Leo is a PIM, an IDE and an outliner.
Video tutorials: http://leoeditor.com/screencasts.html
Text tutorials: http://
Many thanks, worked. The only problem now is that I don't have
auto-complete for anything, because of this approach... I'll have to check
the doc more regularly. ^^
On Tue Nov 18 2014 at 10:48:44 AM Vincent Vande Vyvre <
vincent.vande.vy...@telenet.be> wrote:
> Le 18/11/2014 13:18, Juan Christian
Le 18/11/2014 13:18, Juan Christian a écrit :
I have this simple code that load any Qt Designer .UI file:
from PySide.QtCore import QFile
from PySide.QtGui import QApplication
from PySide.QtUiTools import QUiLoader
def loadui(file_name):
loader = QUiLoader()
uifile = QFile(file_name)
uifile.op
I have this simple code that load any Qt Designer .UI file:
from PySide.QtCore import QFile
from PySide.QtGui import QApplication
from PySide.QtUiTools import QUiLoader
def loadui(file_name):
loader = QUiLoader()
uifile = QFile(file_name)
uifile.open(QFile.ReadOnly)
ui = loader.load(uifile)
uifi
On Tue, 18 Nov 2014 00:00:42 -0700, Michael Torrie wrote:
> On 11/17/2014 03:45 PM, Steven D'Aprano wrote:
>
>> Circular dependencies are not just a problem in Python, they are a
>> problem throughout most of software design.
>
> Personally I find that duck typing eliminates a lot of the circula
First, I'll repeat everybody else: DON'T TOP POST!!!
On 11/16/2014 04:41 PM, Abdul Abdul wrote:
Dave,
Thanks for your nice explanation. For your answer on one of my questions:
*Modules don't have methods. open is an ordinary function in the module.*
Isn't "method" and "function" used interch
27 matches
Mail list logo