pyswt SWT.NULL

Discussion in 'Python' started by 3rdshiftcoder, May 29, 2006.

  1. hi-

    i am trying to make a pyswt gui and when it gets to this line:
    colType = Combo(self.shell, SWT.NULL)

    i get:
    colType = Combo(self.shell, SWT.NULL)
    AttributeError: NULL

    when using swt with java i had to have lots of imports at the beginning of a
    swt file.
    are they not needed when using pyswt?

    thanks for any help,
    jim
     
    3rdshiftcoder, May 29, 2006
    #1
    1. Advertisements

  2. I got it. it is SWT.None

    thanks,
    jim

    "3rdshiftcoder" <> wrote in message
    news:O6reg.2716$HV1.383@trndny01...
    > hi-
    >
    > i am trying to make a pyswt gui and when it gets to this line:
    > colType = Combo(self.shell, SWT.NULL)
    >
    > i get:
    > colType = Combo(self.shell, SWT.NULL)
    > AttributeError: NULL
    >
    > when using swt with java i had to have lots of imports at the beginning of
    > a swt file.
    > are they not needed when using pyswt?
    >
    > thanks for any help,
    > jim
    >
     
    3rdshiftcoder, May 29, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kivak Wolf
    Replies:
    2
    Views:
    10,307
    Kivak Wolf
    Jun 28, 2005
  2. vizlab
    Replies:
    3
    Views:
    4,544
    Michael Bar-Sinai
    Oct 17, 2007
  3. Replies:
    16
    Views:
    8,023
    Mike Schilling
    Oct 12, 2005
  4. Replies:
    5
    Views:
    30,430
    Mike Schilling
    Mar 29, 2006
  5. Bo Peng
    Replies:
    13
    Views:
    14,210
    Siemel Naran
    Jul 18, 2004
  6. Ken
    Replies:
    69
    Views:
    13,422
    Michael D. Borghardt
    Jul 31, 2004
  7. Ken
    Replies:
    5
    Views:
    2,853
    Victor Bazarov
    Jul 24, 2004
  8. Ramon F Herrera

    Where can I download SWT? (SWT homepage)

    Ramon F Herrera, Dec 5, 2007, in forum: Java
    Replies:
    11
    Views:
    4,355
    Ramon F Herrera
    Dec 6, 2007
Loading...