On 10/05/13 06:45, Jim Mooney wrote:
import makeRandomList
newRandomList = createRandomList()
As with any other module you need to specify the module when using its
contents:
newRandomList = makeRandomList.createRandomList()
BTW. A better name for the module is probably just randomlist
I have a simple program, below, to create a specified list of random
integers, which works fine.
I saved it to Lib as makeRandomList.py, then imported it to a
sorter.py program, like so. The import doesn't fail:
import makeRandomList
newRandomList = createRandomList()
But I then get the follow
> Given that your main() question ;c) has been answered, you might also
> want to give Spyder a try before switching.
Thanks - I'll try that if it's not overkill for a basic learning tool,
or has a ton of dependencies I have to install, or isn't up to Py3.3.
PyScripter had an odd bug. Whenever I
On 09/05/13 15:36, Stafford Baines wrote:
Is there a way of controlling pixels on a graphics screen?
> I want to be able to draw lines and curves.
> Is this possible with with Python?
Yes, there are lots of options.
Any GUI library will have a canvas object upon which you can draw
primitive g
* Alan Gauld [2013-05-09 16:50]:
> On 09/05/13 15:42, David Rock wrote:
>
> >> Or use emacs... :-)
> >
> > There's always one. You aren't helping the case for console apps with
> > that one at all. :-)
>
> But then emacs can also be considered an IDE in its own right so its
> maybe a special
I once dabbled with wxPython. The code below may not run straight off as
I've cut it out of a bigger routine, but it may give you a flavour of a
basic (very basic) set up.
import wx
import math
def drawCircle (radius, canvas, strCol):
centre = (100,100)
cX = centre[0]
cY = centre[1]
d
On 10/05/13 00:36, Stafford Baines wrote:
Is there a way of controlling pixels on a graphics screen? I want to be able to
draw lines and curves. Is this possible with with Python?
There are many powerful libraries for working with graphics in Python, but they
often have a very steep learning
On 09/05/13 15:42, David Rock wrote:
Or use emacs... :-)
There's always one. You aren't helping the case for console apps with
that one at all. :-)
Not necessarily since you can run emacs in a non GUI mode and create
multiple shell buffers. Each of these can be scrolled/split etc. (In
f
On Thu, May 9, 2013 at 4:36 PM, Stafford Baines wrote:
> Is there a way of controlling pixels on a graphics screen? I want to be
> able to draw lines and curves. Is this possible with with Python?
>
> Stafford
>
There are various libraries available for drawing. Check these links, they
might be u
* Prasad, Ramit [2013-05-09 04:01]:
> Steven D'Aprano wrote:
> > On the other hand, I work with, and watch, a lot of techies who live
> > in screen. They swear that they're more efficient, but watching them
> > hunt for the right virtual terminal doesn't look very efficient to
> > me. I often see
* Alan Gauld [2013-05-09 07:47]:
> On 09/05/13 05:01, Prasad, Ramit wrote:
>
> > What I like about screen is the way sessions stay open when
> > disconnected, but I find tabbed terminals easier to scroll for
> > history. If there is a tabbed terminal that will allow split screens
> > then all the
Is there a way of controlling pixels on a graphics screen? I want to be able to
draw lines and curves. Is this possible with with Python?
Stafford
Sent from my iPhone
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options
On 05/09/2013 09:16 AM, Albert-Jan Roskam wrote:
Subject: Re: [Tutor] MutableString/Class variables
On 05/09/2013 08:10 AM, Albert-Jan Roskam wrote:
Hello,
I was just playing a bit with Python and I wanted to make a mutable string,
that supports item assignment. Is the way below the wa
On 9 May 2013 14:16, Albert-Jan Roskam wrote:
>
>
>> Subject: Re: [Tutor] MutableString/Class variables
>>
>> On 05/09/2013 08:10 AM, Albert-Jan Roskam wrote:
>>> Hello,
>>>
>>> I was just playing a bit with Python and I wanted to make a mutable string,
>> that supports item assignment. Is the w
> Subject: Re: [Tutor] MutableString/Class variables
>
> On 05/09/2013 08:10 AM, Albert-Jan Roskam wrote:
>> Hello,
>>
>> I was just playing a bit with Python and I wanted to make a mutable string,
> that supports item assignment. Is the way below the way to do this?
>> The part I am not su
On 05/09/2013 08:10 AM, Albert-Jan Roskam wrote:
Hello,
I was just playing a bit with Python and I wanted to make a mutable string,
that supports item assignment. Is the way below the way to do this?
The part I am not sure about is the class variable. Maybe I should also have
reimplemented __i
On 09/05/13 13:10, Albert-Jan Roskam wrote:
class MutableStr(str):
s = None
Why make s a class variable?
I'd expect it to be an instance attribute.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
___
Tutor maillist
Hello,
I was just playing a bit with Python and I wanted to make a mutable string,
that supports item assignment. Is the way below the way to do this?
The part I am not sure about is the class variable. Maybe I should also have
reimplemented __init__, then call super inside this and add an upda
On 05/09/2013 02:47 AM, Alan Gauld wrote:
On 09/05/13 05:01, Prasad, Ramit wrote:
What I like about screen is the way sessions stay open when
disconnected, but I find
tabbed terminals easier to scroll for history. If there is a tabbed
terminal that will allow
split screens then all the neat fea
19 matches
Mail list logo