Introduction/box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cm012b5105

    Introduction/box

    Hello every body this is my first post i would just like to say im new to to
    python iv tried out several different tutorials.And i think its great anyway
    i would like to ask a question if i may i want to know how to make a
    box /square i was hoping some one would tell me. That way i would have
    something to work off,iv just downloaded pygame and i haqve done all my
    practice using "idle" thanks
    nige
  • Christos TZOTZIOY Georgiou

    #2
    Re: Introduction/box

    On Fri, 26 Nov 2004 22:21:45 +0000, rumours say that cm012b5105
    <cm012b5105@blu eyonder.co.uk> might have written:
    [color=blue]
    >Hello every body this is my first post i would just like to say im new to to
    >python iv tried out several different tutorials.And i think its great anyway
    >i would like to ask a question if i may i want to know how to make a
    >box /square i was hoping some one would tell me. That way i would have
    >something to work off,iv just downloaded pygame and i haqve done all my
    >practice using "idle" thanks[/color]

    I know almost nothing about PyGame, but a quick search using Google
    brought this up:



    It could help.
    --
    TZOTZIOY, I speak England very best,
    "Tssss!" --Brad Pitt as Achilles in unprecedented Ancient Greek

    Comment

    • Lee Harr

      #3
      Re: Introduction/box

      On 2004-11-26, Christos TZOTZIOY Georgiou <tzot@sil-tec.gr> wrote:[color=blue]
      > On Fri, 26 Nov 2004 22:21:45 +0000, rumours say that cm012b5105
      ><cm012b5105@bl ueyonder.co.uk> might have written:
      >[color=green]
      >>Hello every body this is my first post i would just like to say im new to to
      >>python iv tried out several different tutorials.And i think its great anyway
      >>i would like to ask a question if i may i want to know how to make a
      >>box /square i was hoping some one would tell me. That way i would have
      >>something to work off,iv just downloaded pygame and i haqve done all my
      >>practice using "idle" thanks[/color]
      >
      > I know almost nothing about PyGame, but a quick search using Google
      > brought this up:
      >
      > http://aspn.activestate.com/ASPN/Mai...-users/2031142
      >
      > It could help.[/color]


      Hmm... That's me wrote that, and I can't make heads or tails of it ;o)

      You might want to try pygsear (an extension package that uses pygame):


      To make a box you could then do:
      [color=blue][color=green][color=darkred]
      >>> from pygsear.Drawabl e import Square
      >>> s = Square(side=100 )
      >>> s.center()
      >>> s.udraw()
      >>>[/color][/color][/color]

      Comment

      Working...