Re: Help in wxpython

2009-12-03 Thread r0g
Krishnakant wrote:
 On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote:
 Hi

 I am trying to write an  PAINT like application where on the mouse
snip

   File C:/Python26/circle.py, line 19, in InitBuffer
 dc=wx.BufferedDC(None,self.buffer)
 AttributeError: 'SketchWindow' object has no attribute 'buffer'

 Please tell me what I am doing wrong.

 Thanks
 Madhura, Sorry to be a bit off-topic, but, I would really recommend you
 to use pygtk instead of wx.
 For one thing, the developers at pygtk are very active (they have their
 mailing list as well ) and it comes by default with python on almost all
 linux distros.  You can also easily install it on windows.
 
 Most important, the api for pygtk is closely similar to wx.
 Not to mention the quick responses you will get with pygtk related
 problems.
 
 Happy hacking.
 Krishnakant.
 



I have to recommend to opposite, stick with wx. What's the point of
tying yourself into GTK when wx works on Mac, PC and Linux?

Roger.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-03 Thread Dietmar Schwertberger


On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote:

def InitBuffer(self):

size=self.GetClientSize()
self.Buffer=wx.EmptyBitmap(size.width,size.height)
dc=wx.BufferedDC(None,self.buffer)
dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
dc.Clear()
self.Drawcircle(dc)
self.reInitBuffer=False



I am getting the following error:

Traceback (most recent call last):
  File C:/Python26/circle.py, line 42, in module
frame=SketchFrame(None)
  File C:/Python26/circle.py, line 38, in __init__
self.sketch = SketchWindow(self, -1)
  File C:/Python26/circle.py, line 12, in __init__
self.InitBuffer()
  File C:/Python26/circle.py, line 19, in InitBuffer
dc=wx.BufferedDC(None,self.buffer)
AttributeError: 'SketchWindow' object has no attribute 'buffer'

Please tell me what I am doing wrong.

As the traceback suggests, self.buffer does not exist. You need to write
self.Buffer.
I did not have a further look or try the code.
Did you have a look at the wxPython demo?
The demo Core Windows/Controls - ScrolledWindow is probably very
similar to what you want.

Krishnakant schrieb:

Madhura, Sorry to be a bit off-topic, but, I would really recommend you
to use pygtk instead of wx.
For one thing, the developers at pygtk are very active (they have their
mailing list as well ) and it comes by default with python on almost all
linux distros.  You can also easily install it on windows.

Most important, the api for pygtk is closely similar to wx.
Not to mention the quick responses you will get with pygtk related
problems.

That's also true for wxPython on the related mail lists:
http://www.wxpython.org/maillist.php


Regards,

Dietmar
--
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-03 Thread Lie Ryan

On 12/3/2009 6:55 PM, r0g wrote:

Krishnakant wrote:

Madhura, Sorry to be a bit off-topic, but, I would really recommend you
to use pygtk instead of wx.
For one thing, the developers at pygtk are very active (they have their
mailing list as well ) and it comes by default with python on almost all
linux distros.  You can also easily install it on windows.

Most important, the api for pygtk is closely similar to wx.
Not to mention the quick responses you will get with pygtk related
problems.

Happy hacking.
Krishnakant.


I have to recommend to opposite, stick with wx. What's the point of
tying yourself into GTK when wx works on Mac, PC and Linux?

Roger.


This again... I recommend writing your own C extension module to access 
GDI using windows.h; it's ugly, it's non-cross-platform, it gets you 
bashed for reinventing the wheel, and it's buggy. Five thumbs up! 
(err... I only got four... whatever...)

--
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-03 Thread Nobody
On Thu, 03 Dec 2009 07:55:19 +, r0g wrote:

 I have to recommend to opposite, stick with wx. What's the point of
 tying yourself into GTK when wx works on Mac, PC and Linux?

The main drawbacks are that wxWidgets sucks compared to GTK or Qt (mostly
due to being modelled on the Win32 API, which itself sucks compared to
most Unix/X11 toolkits), and that wxPython is woefully under-documented
(whereas PyGTK is better documented than GTK itself).

But if you need portability, wxPython is the way to go.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-03 Thread Mike Driscoll
On Dec 2, 10:05 pm, Krishnakant hackin...@gmail.com wrote:
 On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote:
  Hi

  I am trying to write an  PAINT like application where on the mouse
  click a circle is drawn on canvas. I am new to python and using
  wxpython to create this.

  here is the code:

  import wx

  class SketchWindow(wx.Window):

      def __init__ (self, parent,ID):

          wx.Window.__init__(self, parent, ID)

          self.panel =wx.Panel(self, size= (350,350))
          self.pen=wx.Pen( 'blue',4)
          self.pos=(0,0)
          self.InitBuffer()
          self.Bind(wx.EVT_LEFT_DOWN,self.OnLeftDown)

      def InitBuffer(self):

          size=self.GetClientSize()
          self.Buffer=wx.EmptyBitmap(size.width,size.height)
          dc=wx.BufferedDC(None,self.buffer)
          dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
          dc.Clear()
          self.Drawcircle(dc)
          self.reInitBuffer=False

      def OnLeftDown(self,event):
          self.pos=event.GetPositionTuple()
          self.CaptureMouse()

      def Drawcircle(self,dc):
          pen=wx.Pen(colour,thickness,wx.SOLID)
          dc.SetPen(pen)
          dc.DrawCircle(self.pos.x,self.pos.y,r)

  class SketchFrame(wx.Frame):
      def __init__(self, parent):

          wx.Frame.__init__(self, parent, -1, Sketch Frame,size=(800,600))
          self.sketch = SketchWindow(self, -1)

  if __name__=='__main__':
      app=wx.PySimpleApp()
      frame=SketchFrame(None)
      frame.Show(True)
      app.MainLoop()

  I am getting the following error:

  Traceback (most recent call last):
    File C:/Python26/circle.py, line 42, in module
      frame=SketchFrame(None)
    File C:/Python26/circle.py, line 38, in __init__
      self.sketch = SketchWindow(self, -1)
    File C:/Python26/circle.py, line 12, in __init__
      self.InitBuffer()
    File C:/Python26/circle.py, line 19, in InitBuffer
      dc=wx.BufferedDC(None,self.buffer)
  AttributeError: 'SketchWindow' object has no attribute 'buffer'

  Please tell me what I am doing wrong.

  Thanks

 Madhura, Sorry to be a bit off-topic, but, I would really recommend you
 to use pygtk instead of wx.
 For one thing, the developers at pygtk are very active (they have their
 mailing list as well ) and it comes by default with python on almost all
 linux distros.  You can also easily install it on windows.


wxPython has some very active developers as well, but the core isn't
released all that often. I think this may be caused somewhat by the
slow release cycle of wx itself though.



 Most important, the api for pygtk is closely similar to wx.
 Not to mention the quick responses you will get with pygtk related
 problems.


The wxPython mailing list has very fast responses to questions as well
(most of the time)

---
Mike Driscoll

Blog:   http://blog.pythonlibrary.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-03 Thread Mike Driscoll
On Dec 3, 3:22 pm, Nobody nob...@nowhere.com wrote:
 On Thu, 03 Dec 2009 07:55:19 +, r0g wrote:
  I have to recommend to opposite, stick with wx. What's the point of
  tying yourself into GTK when wx works on Mac, PC and Linux?

 The main drawbacks are that wxWidgets sucks compared to GTK or Qt (mostly
 due to being modelled on the Win32 API, which itself sucks compared to
 most Unix/X11 toolkits), and that wxPython is woefully under-documented
 (whereas PyGTK is better documented than GTK itself).

 But if you need portability, wxPython is the way to go.

There is currently an on-going documentation initiative going on for
wxPython. Robin Dunn is doing some work on it that will allow much
easier documentation patching (as I understand it), so that should get
better.

Also, I am slowly working my way through wxPython many widgets and
doing tutorials on them on my blog, which I then stick in the official
wxPython wiki if I think the article is good enough.

---
Mike Driscoll

Blog:   http://blog.pythonlibrary.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-03 Thread Kevin Walzer



Madhura, Sorry to be a bit off-topic, but, I would really recommend you
to use pygtk instead of wx.
For one thing, the developers at pygtk are very active (they have their
mailing list as well ) and it comes by default with python on almost all
linux distros.  You can also easily install it on windows.

Most important, the api for pygtk is closely similar to wx.
Not to mention the quick responses you will get with pygtk related
problems.



If you want to include the Mac in your distribution, PyGtk isn't a good 
choice. Native support is quite experimental at this point, which 
basically means you'll be running it under X11. (WingIDE's Mac version 
runs on PyGTK, and it doesn't feel native at all.)


--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
--
http://mail.python.org/mailman/listinfo/python-list


Help in wxpython

2009-12-02 Thread madhura vadvalkar
Hi

I am trying to write an  PAINT like application where on the mouse
click a circle is drawn on canvas. I am new to python and using
wxpython to create this.

here is the code:

import wx

class SketchWindow(wx.Window):

def __init__ (self, parent,ID):

wx.Window.__init__(self, parent, ID)

self.panel =wx.Panel(self, size= (350,350))
self.pen=wx.Pen( 'blue',4)
self.pos=(0,0)
self.InitBuffer()
self.Bind(wx.EVT_LEFT_DOWN,self.OnLeftDown)

def InitBuffer(self):

size=self.GetClientSize()
self.Buffer=wx.EmptyBitmap(size.width,size.height)
dc=wx.BufferedDC(None,self.buffer)
dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
dc.Clear()
self.Drawcircle(dc)
self.reInitBuffer=False

def OnLeftDown(self,event):
self.pos=event.GetPositionTuple()
self.CaptureMouse()

def Drawcircle(self,dc):
pen=wx.Pen(colour,thickness,wx.SOLID)
dc.SetPen(pen)
dc.DrawCircle(self.pos.x,self.pos.y,r)

class SketchFrame(wx.Frame):
def __init__(self, parent):

wx.Frame.__init__(self, parent, -1, Sketch Frame,size=(800,600))
self.sketch = SketchWindow(self, -1)

if __name__=='__main__':
app=wx.PySimpleApp()
frame=SketchFrame(None)
frame.Show(True)
app.MainLoop()

I am getting the following error:

Traceback (most recent call last):
  File C:/Python26/circle.py, line 42, in module
frame=SketchFrame(None)
  File C:/Python26/circle.py, line 38, in __init__
self.sketch = SketchWindow(self, -1)
  File C:/Python26/circle.py, line 12, in __init__
self.InitBuffer()
  File C:/Python26/circle.py, line 19, in InitBuffer
dc=wx.BufferedDC(None,self.buffer)
AttributeError: 'SketchWindow' object has no attribute 'buffer'

Please tell me what I am doing wrong.

Thanks









-- 
Madhura
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-02 Thread Dave Angel



madhura vadvalkar wrote:

Hi

I am trying to write an  PAINT like application where on the mouse
click a circle is drawn on canvas. I am new to python and using
wxpython to create this.

here is the code:

import wx

class SketchWindow(wx.Window):

def __init__ (self, parent,ID):

wx.Window.__init__(self, parent, ID)

self.panel =wx.Panel(self, size= (350,350))
self.pen=wx.Pen( 'blue',4)
self.pos=(0,0)
self.InitBuffer()
self.Bind(wx.EVT_LEFT_DOWN,self.OnLeftDown)

def InitBuffer(self):

size=self.GetClientSize()
self.Buffer=wx.EmptyBitmap(size.width,size.height)
dc=wx.BufferedDC(None,self.buffer)
  


You spelled the instance attribute differently.  You initialized it as 
Buffer but reference it as buffer   Lowercase would be more standard.

snip
I am getting the following error:

Traceback (most recent call last):
  File C:/Python26/circle.py, line 42, in module
frame=SketchFrame(None)
  File C:/Python26/circle.py, line 38, in __init__
self.sketch = SketchWindow(self, -1)
  File C:/Python26/circle.py, line 12, in __init__
self.InitBuffer()
  File C:/Python26/circle.py, line 19, in InitBuffer
dc=wx.BufferedDC(None,self.buffer)
AttributeError: 'SketchWindow' object has no attribute 'buffer'

Please tell me what I am doing wrong.

Thanks


  

--
http://mail.python.org/mailman/listinfo/python-list


Re: Help in wxpython

2009-12-02 Thread Krishnakant
On Wed, 2009-12-02 at 00:20 -0800, madhura vadvalkar wrote:
 Hi
 
 I am trying to write an  PAINT like application where on the mouse
 click a circle is drawn on canvas. I am new to python and using
 wxpython to create this.
 
 here is the code:
 
 import wx
 
 class SketchWindow(wx.Window):
 
 def __init__ (self, parent,ID):
 
 wx.Window.__init__(self, parent, ID)
 
 self.panel =wx.Panel(self, size= (350,350))
 self.pen=wx.Pen( 'blue',4)
 self.pos=(0,0)
 self.InitBuffer()
 self.Bind(wx.EVT_LEFT_DOWN,self.OnLeftDown)
 
 def InitBuffer(self):
 
 size=self.GetClientSize()
 self.Buffer=wx.EmptyBitmap(size.width,size.height)
 dc=wx.BufferedDC(None,self.buffer)
 dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
 dc.Clear()
 self.Drawcircle(dc)
 self.reInitBuffer=False
 
 def OnLeftDown(self,event):
 self.pos=event.GetPositionTuple()
 self.CaptureMouse()
 
 def Drawcircle(self,dc):
 pen=wx.Pen(colour,thickness,wx.SOLID)
 dc.SetPen(pen)
 dc.DrawCircle(self.pos.x,self.pos.y,r)
 
 class SketchFrame(wx.Frame):
 def __init__(self, parent):
 
 wx.Frame.__init__(self, parent, -1, Sketch Frame,size=(800,600))
 self.sketch = SketchWindow(self, -1)
 
 if __name__=='__main__':
 app=wx.PySimpleApp()
 frame=SketchFrame(None)
 frame.Show(True)
 app.MainLoop()
 
 I am getting the following error:
 
 Traceback (most recent call last):
   File C:/Python26/circle.py, line 42, in module
 frame=SketchFrame(None)
   File C:/Python26/circle.py, line 38, in __init__
 self.sketch = SketchWindow(self, -1)
   File C:/Python26/circle.py, line 12, in __init__
 self.InitBuffer()
   File C:/Python26/circle.py, line 19, in InitBuffer
 dc=wx.BufferedDC(None,self.buffer)
 AttributeError: 'SketchWindow' object has no attribute 'buffer'
 
 Please tell me what I am doing wrong.
 
 Thanks
Madhura, Sorry to be a bit off-topic, but, I would really recommend you
to use pygtk instead of wx.
For one thing, the developers at pygtk are very active (they have their
mailing list as well ) and it comes by default with python on almost all
linux distros.  You can also easily install it on windows.

Most important, the api for pygtk is closely similar to wx.
Not to mention the quick responses you will get with pygtk related
problems.

Happy hacking.
Krishnakant.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help with wxPython program :.: return 1?

2009-04-06 Thread Trent Mick

Dennis Lee Bieber wrote:

I don't know what Komodo is coded in, but if it is using wx, you may
be failing from having two mainloop processes... (same problem as
trying to run a Tkinter application from inside IDLE, and probably
trying to run a win32gui application from PythonWin)


No, Komodo is not a wx app.

Trent

--
Trent Mick
trentm at activestate.com
--
http://mail.python.org/mailman/listinfo/python-list


Help with wxPython program :.: return 1?

2009-04-05 Thread Kenny x
Hello, I have a problem with my wxPython 2.8 Application.
The program opens and closes and on KomodoEdit it says wxstreamredirect.py
returned 1.'
 What's wrong?
http://paste.pocoo.org/show/80/

P.S. I compared my source code to the source code in wxPython in Action,
and it looks the same! Why does my program open, then return 1 and close?

Any help Appreciated! :)

~ Xarver
--
http://mail.python.org/mailman/listinfo/python-list


Re: Help with wxPython program :.: return 1?

2009-04-05 Thread Vlastimil Brom
2009/4/5 Kenny x xarv...@gmail.com:
 Hello, I have a problem with my wxPython 2.8 Application.
 The program opens and closes and on KomodoEdit it says wxstreamredirect.py
 returned 1.'
  What's wrong?
 http://paste.pocoo.org/show/80/

 P.S. I compared my source code to the source code in wxPython in Action,
 and it looks the same! Why does my program open, then return 1 and close?

 Any help Appreciated! :)

 ~ Xarver

 --
 http://mail.python.org/mailman/listinfo/python-list


Hi,
try to change the case on line 22:
self.frame.show()

self.frame.Show()

There is a traceback notice about Frame not having a show() method.

hth,
   vbr
--
http://mail.python.org/mailman/listinfo/python-list


Need help with Wxpython

2008-10-14 Thread azrael
I need to implement a tree which will append a root. Any other node in
the tree will be triggered when a button is pressed.
I created the button, all the needed events, tree and a root. But when
I want to append a node pressing the button I don't know How.

My idea is using the wx.EVT_TREE_SEL_CHANGED event somehow get The ID
or something of the selected node, so I could know Where to append the
his child. I need the ID for the appenditem method. But HOW TO GET THE
ID FOR THE PARENT.

PLEASE SOME HELP, I CAN'T FIND THE NEEDED METHOD
--
http://mail.python.org/mailman/listinfo/python-list


Re: Need help with Wxpython

2008-10-14 Thread Mike Driscoll
On Oct 14, 9:00 am, azrael [EMAIL PROTECTED] wrote:
 I need to implement a tree which will append a root. Any other node in
 the tree will be triggered when a button is pressed.
 I created the button, all the needed events, tree and a root. But when
 I want to append a node pressing the button I don't know How.

 My idea is using the wx.EVT_TREE_SEL_CHANGED event somehow get The ID
 or something of the selected node, so I could know Where to append the
 his child. I need the ID for the appenditem method. But HOW TO GET THE
 ID FOR THE PARENT.

 PLEASE SOME HELP, I CAN'T FIND THE NEEDED METHOD

The demo seems to do have an example that does this. See the
TreeMixin under the More Windows/Controls section. If you don't
have the demo, you can get it here: http://wxpython.org/download.php

I recommend the wxPython mailing list for questions about wxPython
too. I'm sure someone on there could tell you how to do it without the
mixin: http://wxpython.org/maillist.php

Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: Need help with Wxpython

2008-10-14 Thread azrael
Seen it already but looks to complicated. Someone knows a better way?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Need help with Wxpython

2008-10-14 Thread Mike Driscoll
On Oct 14, 9:36 am, azrael [EMAIL PROTECTED] wrote:
 Seen it already but looks to complicated. Someone knows a better way?

What about the tree control's GetSelection method? That seems to
return the TreeItemId.

Mike
--
http://mail.python.org/mailman/listinfo/python-list


Re: where to report bug/get help for wxpython

2007-04-13 Thread kyosohma
On Apr 12, 9:35 pm, alf [EMAIL PROTECTED] wrote:
 Hi,

 I have another problem with wxpython - that is the best place to report
 bug - evident memory leak on Linux and win32.

 --
 alf

You'll need to go to the official wxPython website, here: http://wxpython.org/

There's a link to the mailing list (for help) and a link on how to
report a bug. I would recommend reporting your problem to the users
group mailing list first to find out if your problem is a known bug or
not.

Mike

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: where to report bug/get help for wxpython

2007-04-13 Thread Steve Holden
alf wrote:
 Hi,
 
 I have another problem with wxpython - that is the best place to report 
 bug - evident memory leak on Linux and win32.
 

Google for

   wxpython mailing list

and see if you still need help after that. Bug reports on c.l.py will 
almost certainly go unregarded.

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd  http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings   http://holdenweb.blogspot.com

-- 
http://mail.python.org/mailman/listinfo/python-list


where to report bug/get help for wxpython

2007-04-12 Thread alf
Hi,

I have another problem with wxpython - that is the best place to report 
bug - evident memory leak on Linux and win32.

-- 
alf
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: HELP! on wxPython Error

2006-01-09 Thread Franz Steinhaeusler
On Mon, 2 Jan 2006 21:44:11 +0600, Suranga Sarukkali
[EMAIL PROTECTED] wrote:

Hello, I'm Sam and I've been under som trouble with using wxPython
that when I try to execute code containing wxPython gui programs
provided with wxPython geting started sample progams it's giving a
error but when I type the code to the shell prompt it works fine. Is
it beacus I'm on windows or will I have to download again? or is it
else. Please answer my deeply troblesome question replying to me at
[EMAIL PROTECTED]

Is the wxPython Demo working?
What Getting Started Code are you referring to?
Can you show us the code?
Did you get any tracebacks?
-- 
Franz Steinhaeusler
-- 
http://mail.python.org/mailman/listinfo/python-list


HELP! on wxPython Error

2006-01-02 Thread Suranga Sarukkali
Hello, I'm Sam and I've been under som trouble with using wxPython
that when I try to execute code containing wxPython gui programs
provided with wxPython geting started sample progams it's giving a
error but when I type the code to the shell prompt it works fine. Is
it beacus I'm on windows or will I have to download again? or is it
else. Please answer my deeply troblesome question replying to me at
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: HELP! on wxPython Error

2006-01-02 Thread stelki
Hello, you smell.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: HELP! on wxPython Error

2006-01-02 Thread Tim Roberts
Suranga Sarukkali [EMAIL PROTECTED] wrote:

Hello, I'm Sam and I've been under som trouble with using wxPython
that when I try to execute code containing wxPython gui programs
provided with wxPython geting started sample progams it's giving a
error but when I type the code to the shell prompt it works fine. Is
it beacus I'm on windows or will I have to download again? or is it
else.

You cannot possibly expect us to diagnose a problem when you have shown us
neither the code that fails, nor the exact text of the error message.

Show us the code, show us the error.  Then we can offer advice.
-- 
- Tim Roberts, [EMAIL PROTECTED]
  Providenza  Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list


Help with wxPython

2005-08-12 Thread mitsura
Hi,

I have encountered an annoying problem with wx.Choice from wx.Python.
Basically, what I want to do is create a drop down box with a set of
choices (so far so good). The problem is that when the drop down box is
created, the first entry in the list of the drop down box is empty and
you need to drop down in the list to make your choice.
I was looking for an option that allows to set a default/preset choice
in the list.
This is important because I have written an apps where you can set the
properties of objects (cars) via drop down list and choose between a
set of pre-defined choices. However, if the set the properties of the
car (color, model, ...) via the Edit Properties windows but later you
which to change a properties it would be nice to see the choices you
made in de dropdown list and not a blank a first choice.

It seems trivial do.

Any help very much appreciated.

Kris

-- 
http://mail.python.org/mailman/listinfo/python-list


help with wxPython and wxGrid

2005-04-10 Thread Sam the Cat
using from wxPython.wx import * under python2.3 I cannot seem to find the
wxGrid class -- it says its undefined -- am I missing something obvious ?  I
know the globalspace import is not the best, but that how I got started
;) -- any help owuld be appreciated


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: help with wxPython and wxGrid

2005-04-10 Thread vincent wehren
Sam the Cat [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]
| using from wxPython.wx import * under python2.3 I cannot seem to find 
the
| wxGrid class -- it says its undefined -- am I missing something obvious ? 
I
| know the globalspace import is not the best, but that how I got started
| ;) -- any help owuld be appreciated
|
|

Try:

from wxPython.wx import *
from wxPython.grid import *

or

import wx
import wx.grid

--
Vincent Wehren 


-- 
http://mail.python.org/mailman/listinfo/python-list