On 04/26/2013 01:45 AM, wang yong wrote:
Hi tutors,
I am a newb. Please bear with my simple question.
If you're new to Python, then any GUI question isn't "simple." But
perhaps you're not new to Python, but only to PyQT. I'll qualify my
remarks with the statement that I'm not familiar with
On 26/04/13 15:45, wang yong wrote:
Hi tutors,
I am a newb. Please bear with my simple question. Please refer to the code
as following. The question is: what is the special meaning of 'e' variable
in the class of 'Button'.
'e' is the argument to the dragEnterEvent and dropEvent methods. You w
Hi tutors,
I am a newb. Please bear with my simple question. Please refer to the code
as following. The question is: what is the special meaning of 'e' variable
in the class of 'Button'. The second one is how function 'dragEnterEvent'
and 'dropEvent' got executed with calling from class 'example'.
On Thu, Apr 25, 2013 at 9:45 AM, Marc Tompkins wrote:
>
> If you put quotes around your input, Python recognizes it as a string
> literal. Python "executes" string literals by simply printing them to
> standard output - try it at a Python prompt sometime - which is probably not
> the behavior you
On Thu, Apr 25, 2013 at 8:45 AM, Marc Tompkins wrote:
> On Thu, Apr 25, 2013 at 5:40 AM, boB Stepp wrote:
> Remember that input(), in Python 2, executes what's passed to it. If your
> input is boB, then Python tries to execute the statement boB - and unless
> you've previously defined boB, Pyth
On Thu, Apr 25, 2013 at 5:40 AM, boB Stepp wrote:
> One thing that no one has addressed so far is why when I put quotes
> around my input, as in 'boB', the program does run in the command
> prompt.
>
Remember that input(), in Python 2, executes what's passed to it. If your
input is boB, then Py
Hi Steve,
>
>> E:\Programs\Python\IYOCGwPy\Ch4>guess.py
>
> Here you are telling Windows to look up the file association for .py files.
> It locates some program, and runs it with guess.py as the argument. Looking
> at the result:
>
>> Hello! What is your name?
>> boB
>> Traceback (most recent cal
Hi Danny,
>
> [The following note is Python 2.0 specific. In Python 3, input() is
> semantically different, and safe.]
>
> If you are using Python 2.0, don't use the input() function here to
> read strings. It is not safe: backing it is an implicit eval(), and
> eval() is dangerous, especially f
On Thu, Apr 25, 2013 at 12:51 AM, eryksun wrote:
> On Thu, Apr 25, 2013 at 3:41 AM, Marc Tompkins
> wrote:
> > On Wed, Apr 24, 2013 at 9:36 PM, eryksun wrote:
> >>
> >> .py files need to be associated with %windir%\py.exe.
> >
> >
> > NO!
> >
> > %windir% means "the directory where Windows is i
On Thu, Apr 25, 2013 at 3:41 AM, Marc Tompkins wrote:
> On Wed, Apr 24, 2013 at 9:36 PM, eryksun wrote:
>>
>> .py files need to be associated with %windir%\py.exe.
>
>
> NO!
>
> %windir% means "the directory where Windows is installed", usually (but not
> always) C:\Windows. You're saying that t
On Wed, Apr 24, 2013 at 9:36 PM, eryksun wrote:
> .py files need to be associated with %windir%\py.exe.
NO!
%windir% means "the directory where Windows is installed", usually (but not
always) C:\Windows. You're saying that there needs to be a py.exe in the
Windows directory - this is absolute
11 matches
Mail list logo