Re: Drag and Drop Images in Python (NEED HELP!)

2015-01-01 Thread Terry Reedy
On 1/1/2015 7:36 PM, lucas mvm wrote: a different introduction to the same code posted 6 hours earlier. Read and study both of the answers already given about an hour after the first post. Ignoring them and reposting, with 'NEED HELP!' no less, is rude. I strongly suggest you do the exercise

Drag and Drop Images in Python (NEED HELP!)

2015-01-01 Thread lucas mvm
Hi at all user! I used Tkinter and canvas to make a window and i added 2 transparent .png images. So when i start my programm it just shows the 2 images. I want to drag one image above the other image and than it will disappear. So I need help with "drag and drop images" heres my code if you wan

THE SUPERIORITY OF THE MOTHER IN ISLAM

2015-01-01 Thread bv4bv4bv4
THE SUPERIORITY OF THE MOTHER IN ISLAM #1- From Abu Hurairah -radiallaahu anhu- who said: A man came to the Messenger of Allah -sallallaahu alayhi wa sallam- and said: 'O Messenger of Allah who from the people is the most deserving of my good companionship? The Messenger -sallallaahu alayhi wa s

Re: Moving 1 Picture in a Programm - How to?

2015-01-01 Thread Rick Johnson
On Thursday, January 1, 2015 12:44:13 PM UTC-6, lucas mvm wrote: > Hey Guys! I need your help! So i want to make a program > like the app called "Feed Me" There are 2 Pictures (I got > that) than you can click the food picture and drag it on > the boys mouth and than the sad boys face disappears an

Re: Moving 1 Picture in a Programm - How to?

2015-01-01 Thread Christian Gollwitzer
Am 01.01.15 um 19:43 schrieb lucasvfxd...@gmail.com: Hey Guys! I need your help! So i want to make a programm like the app called "Feed Me" There are 2 Pictures (I got that) than you can click the food picture and drag it on the boys mouth and than the sad boys face disappears and a happy face sh

Moving 1 Picture in a Programm - How to?

2015-01-01 Thread lucasvfxdood
Hey Guys! I need your help! So i want to make a programm like the app called "Feed Me" There are 2 Pictures (I got that) than you can click the food picture and drag it on the boys mouth and than the sad boys face disappears and a happy face shows up. Heres the code ive wrtiten from tkinter impo

Re: Logger not logging

2015-01-01 Thread Jason Friedman
>> Python 3.4.0 (default, Apr 18 2014, 19:16:28) >> [GCC 4.8.1] on linux >> Type "help", "copyright", "credits" or "license" for more information. > import logging > logger = logging.getLogger() > logger.setLevel(logging.INFO) > logger.info("hello") > logger.warn("hello") >> hel

Re: Logger not logging

2015-01-01 Thread Peter Otten
Jason Friedman wrote: > I expect logger.info("hello") to emit. > > $ python > Python 3.4.0 (default, Apr 18 2014, 19:16:28) > [GCC 4.8.1] on linux > Type "help", "copyright", "credits" or "license" for more information. import logging logger = logging.getLogger() logger.setLevel(l

Re: Logger not logging

2015-01-01 Thread Joel Goldstick
On Thu, Jan 1, 2015 at 12:25 PM, Dan Sommers wrote: > On Thu, 01 Jan 2015 10:09:13 -0700, Jason Friedman wrote: > > > What am I missing? > > > > I expect logger.info("hello") to emit. > > > > $ python > > Python 3.4.0 (default, Apr 18 2014, 19:16:28) > > [GCC 4.8.1] on linux > > Type "help", "cop

Re: Logger not logging

2015-01-01 Thread Dan Sommers
On Thu, 01 Jan 2015 10:09:13 -0700, Jason Friedman wrote: > What am I missing? > > I expect logger.info("hello") to emit. > > $ python > Python 3.4.0 (default, Apr 18 2014, 19:16:28) > [GCC 4.8.1] on linux > Type "help", "copyright", "credits" or "license" for more information. import loggi

Logger not logging

2015-01-01 Thread Jason Friedman
What am I missing? I expect logger.info("hello") to emit. $ python Python 3.4.0 (default, Apr 18 2014, 19:16:28) [GCC 4.8.1] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import logging >>> logger = logging.getLogger() >>> logger.setLevel(logging.INFO) >>> lo

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Denis McMahon
On Thu, 01 Jan 2015 02:55:49 +0530, Thuruv V wrote: > Hi all, > > Here's the list. . > > inlist = ["Fossil Women's Natalie Stainless Steel Watch Brown (JR1385)", > 'Balmer Swiss Made Veyron Mens Watch: Black Band/ Black Dial > (62625241)', > 'Fortune NYC Ladies Quilted Dial Watch: Brown', > 'Jea

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Steven D'Aprano
Mark Lawrence wrote: > On 01/01/2015 10:15, Steven D'Aprano wrote: >> >> I know that the code you show cannot possibly be the code you are using, >> because the code you show fails. If you ran this code, it would raise >> TypeError. >> > > Traceback (most recent call last): >File "C:\Users\Ma

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Mark Lawrence
On 01/01/2015 09:10, Jacob Kruger wrote: Not sure after quick skim/scan, but, I would generally use either for I in range(len(inlist)): or just for it in inlist, instead of using while, etc. Stay well As a rule of thumb if you're writing range(len(inlist)) you're doing it wrong. For an examp

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Mark Lawrence
On 01/01/2015 10:15, Steven D'Aprano wrote: I know that the code you show cannot possibly be the code you are using, because the code you show fails. If you ran this code, it would raise TypeError. Traceback (most recent call last): File "C:\Users\Mark\Documents\MyPython\mytest.py", line 16

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Steven D'Aprano
Thuruv V wrote: > Hi all, > > Here's the list. . The exact details of the list are not important. Please simplify your code to something easier to handle than this: > inlist = ["Fossil Women's Natalie Stainless Steel Watch Brown (JR1385)", > 'Balmer Swiss Made Veyron Mens Watch: Black Band/ Bla

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Jussi Piitulainen
Thuruv V writes: > Here's the list. . > > inlist = ["Fossil Women's Natalie Stainless Steel Watch Brown (JR1385)", > 'Balmer Swiss Made Veyron Mens Watch: Black Band/ Black Dial (62625241)', > 'Fortune NYC Ladies Quilted Dial Watch: Brown', > 'Jeanne Collection w/ Swarovski Elements Watch: Dark P

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Mark Lawrence
On 31/12/2014 21:25, Thuruv V wrote: Hi all, Here's the list. . inlist = ["Fossil Women's Natalie Stainless Steel Watch Brown (JR1385)", 'Balmer Swiss Made Veyron Mens Watch: Black Band/ Black Dial (62625241)', 'Fortune NYC Ladies Quilted Dial Watch: Brown', 'Jeanne Collection w/ Swarovski Elem

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Jacob Kruger
Not sure after quick skim/scan, but, I would generally use either for I in range(len(inlist)): or just for it in inlist, instead of using while, etc. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message

Why For Loop Skips the Last element?

2015-01-01 Thread Thuruv V
Hi all, Here's the list. . inlist = ["Fossil Women's Natalie Stainless Steel Watch Brown (JR1385)", 'Balmer Swiss Made Veyron Mens Watch: Black Band/ Black Dial (62625241)', 'Fortune NYC Ladies Quilted Dial Watch: Brown', 'Jeanne Collection w/ Swarovski Elements Watch: Dark Purple Band (62623659)