Re: [Tutor] creating a mspaint utility

2016-01-14 Thread Alan Gauld
On 14/01/16 10:58, Whom Isac wrote: > Hi, I was wondering if it is possible to make a similar drawing tool with > basic functionality to draw lines, circles or square with python canvas. Yes of course and there are at least a couple of online tutorials on how to do that. Google is your friend. >

Re: [Tutor] Clickable listbox opening .txt files

2016-01-14 Thread Alan Gauld
On 14/01/16 11:39, Ali Moradi wrote: > Hi, you said my click event grabs text and doesn't show it. So how do get > it to show on the Text widget? Your text widget is calloed text. So simply insert the text into the widget using text.insert(END,file) at the end of your click handler. > def click

Re: [Tutor] me, my arm, my availability ...

2016-01-14 Thread Cem Karan
On Jan 13, 2016, at 3:47 PM, Laura Creighton wrote: > > I fell recently. Ought to be nothing, but a small chip of bone, either an > existing one or one I just made is nicely wedged in the joint taking away > a whole lot of the ability of my arm to rotate in the elbow joint. Or > hold my arm i

Re: [Tutor] Modularity

2016-01-14 Thread Mark Lawrence
On 14/01/2016 15:27, James Chapman wrote: I should have re-read that last reply before hitting send. Apologies for the poor sentence construction! Something I forgot to highlight before which might be related to your initial question. If you have a file called sound.py which contained a class c

Re: [Tutor] Modularity

2016-01-14 Thread James Chapman
I should have re-read that last reply before hitting send. Apologies for the poor sentence construction! Something I forgot to highlight before which might be related to your initial question. If you have a file called sound.py which contained a class called WavFile, if you imported just sound li

Re: [Tutor] Procedure to install dlib on windows?

2016-01-14 Thread Mark Lawrence
On 14/01/2016 10:09, Rheeya Uppaal wrote: I'm an absolute beginner at python, but have been asked to download the dlib library on my windows system. I have followed the instructions given here: http://dlib.net/compile.html I have already downloaded cmake and Visual Studio. On the Visual Studio c

Re: [Tutor] Procedure to install dlib on windows?

2016-01-14 Thread James Chapman
>From one of the Python examples: # COMPILING/INSTALLING THE DLIB PYTHON INTERFACE # You can install dlib using the command: # pip install dlib # # Alternatively, if you want to compile dlib yourself then go into the dlib # root folder and run: # python setup.py install # or #

Re: [Tutor] Procedure to install dlib on windows?

2016-01-14 Thread Alan Gauld
On 14/01/16 10:09, Rheeya Uppaal wrote: > I'm an absolute beginner at python, but have been asked to download the > dlib library on my windows system. I have followed the instructions given > here: http://dlib.net/compile.html Its not clear why you are doing this. Who asked you to download it? Why

Re: [Tutor] idle??

2016-01-14 Thread Chris Warrick
On 13 January 2016 at 21:49, Mark Lawrence wrote: > On 09/01/2016 10:38, Chris Warrick wrote: >> >> On 8 January 2016 at 20:07, bruce wrote: >>> >>> So, where does IDLE fit into this >> >> >> IDLE is a sad little “IDE”, which is really ugly, because it’s written >> in Tk. It lacks many IDE fe

Re: [Tutor] PLEASE I NEED HELP URGENTLY

2016-01-14 Thread Whom Isac
@precious Akams. I don't know if you have tried to look for any resources e.g. python directory to help you with this small syntax error. And I don't see any relevance information with your callback error message with your code. How did you able to run it?? I have not been reading my mails in a whi

Re: [Tutor] Creating a webcrawler

2016-01-14 Thread Whom Isac
Thanks guys for your replies. I actually tried playing with my browser but getting a web crawler to select a video and fetch the video link was not helpful or should I say very hard for me as I am just a beginner level programmer and python was the first language I learnt. I also learnt javascript,

[Tutor] creating a mspaint utility

2016-01-14 Thread Whom Isac
Hi, I was wondering if it is possible to make a similar drawing tool with basic functionality to draw lines, circles or square with python canvas. I know how to draw them with canvas very well but the problem is the way I am getting my mouse positions (initial& final). I did not think it would have

[Tutor] Procedure to install dlib on windows?

2016-01-14 Thread Rheeya Uppaal
I'm an absolute beginner at python, but have been asked to download the dlib library on my windows system. I have followed the instructions given here: http://dlib.net/compile.html I have already downloaded cmake and Visual Studio. On the Visual Studio command prompt, on running "python setup.py i

[Tutor] Clickable listbox opening .txt files

2016-01-14 Thread Ali Moradi
Hi, you said my click event grabs text and doesn't show it. So how do get it to show on the Text widget? So that when i clicked on item 1, 1.txt shows on the Text widget. I can't connect click event to Text widget from Tkinter import * root = Tk() root.title("Renkontoj kun Diferenculoj") root.icon

Re: [Tutor] idle??

2016-01-14 Thread Sydney Shall
On 13/01/2016 23:10, Danny Yoo wrote: So, where does IDLE fit into this IDLE is a sad little “IDE”, which is really ugly, because it’s written in Tk. It lacks many IDE features. It comes with a really basic debugger (that doesn’t even highlight the line that is being currently executed…), f

Re: [Tutor] me, my arm, my availability ...

2016-01-14 Thread Oscar Benjamin
On 13 January 2016 at 20:47, Laura Creighton wrote: > > Seems like surgery is needed to fix this. > > So I wanted you all to know, no, I haven't forgotten you and no haven't > stopped caring. I have just stopped being as __capable__ if you know > what I mean. > > Please take care of yourselves an

Re: [Tutor] Question about the memory manager

2016-01-14 Thread eryk sun
On Thu, Jan 14, 2016 at 3:03 AM, Albert-Jan Roskam wrote: > > These two pages are quite nice. The author says the memory used by small > objects is > never returned to the OS, which may be problematic for long running processes. The article by Evan Jones discusses a patch to enable releasing unu

Re: [Tutor] idle??

2016-01-14 Thread Wolf Halton
Idle is sufficient for a beginner. Better than notepad. It is cross platform so your environment looks the same on Linux Mac or What-have-you. Some people obsess over ide features to avoid thinking about the more important questions. Eclipse never helped me learn to write better py code. I have

Re: [Tutor] Modularity

2016-01-14 Thread James Chapman
May I suggest: https://docs.python.org/2/tutorial/modules.html In particular: * https://docs.python.org/2/tutorial/modules.html#the-module-search-path * https://docs.python.org/2/tutorial/modules.html#packages Now the next bit of advice is likely to be controversial but I have good reasons for i

Re: [Tutor] Question about the memory manager

2016-01-14 Thread Albert-Jan Roskam
D > From: sjeik_ap...@hotmail.com > To: tim.pet...@gmail.com > Date: Wed, 13 Jan 2016 08:11:11 + > Subject: Re: [Tutor] Question about the memory manager > CC: tutor@python.org > > > From: tim.pet...@gmail.com > > Date: Sun, 10 Jan 2016 10:54:10 -0600 > > Subject: Re: [Tutor] Question about t

Re: [Tutor] Clickable listbox opening specific .txt files

2016-01-14 Thread Alan Gauld
On 14/01/16 08:05, Ali Moradi wrote: > Hi, i want to open specific .txt files when each item on the listbox was > clicked! When i click on the first item for example it opens 1.txt and > shows it on the text widget on the right, and when i select the second item > on the list first it erases the te

Re: [Tutor] Modularity

2016-01-14 Thread Alan Gauld
On 14/01/16 03:56, kay Cee wrote: > I'm looking to make individual modules for each class eg. Ball, > Paddle,bounds, Game, Physics and Logic. That's not usually necessary in Python. It's often better to group several related classes in a single module. For example your Ball and Paddle and any ot

[Tutor] Modularity

2016-01-14 Thread kay Cee
Recently I've decided to write a pong style game with pygame; however, I can't seem to modularize the game successfully. I'm looking to make individual modules for each class eg. Ball, Paddle,bounds, Game, Physics and Logic. Used like this : ball = Ball(), paddle = Paddle() and etc... In a Game

Re: [Tutor] me, my arm, my availability ...

2016-01-14 Thread CMG Thrissur
take care, get well soon, regards CMG On Thursday 14 January 2016 02:17 AM, Laura Creighton wrote: I fell recently. Ought to be nothing, but a small chip of bone, either an existing one or one I just made is nicely wedged in the joint taking away a whole lot of the ability of my arm to rotate

[Tutor] Clickable listbox opening specific .txt files

2016-01-14 Thread Ali Moradi
Hi, i want to open specific .txt files when each item on the listbox was clicked! When i click on the first item for example it opens 1.txt and shows it on the text widget on the right, and when i select the second item on the list first it erases the text on the Text widget and then opens 2.txt fi