[wxPython] getting wxPython up and running for the first time

I just downloaded wxWindows (can't find any download labeled wxPython).

In part 1 of the wxPython tutorial is an example that imports wxPython.wx.

Where is wxPython.wx? I can't find it anywhere on my machine or the
installation I downloaded.

Do I need to download the C source and build it?

Roger Mallett

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

I just downloaded wxWindows (can't find any download labeled wxPython).

http://wxPython.org/download.php

In part 1 of the wxPython tutorial is an example that imports wxPython.wx.

Where is wxPython.wx? I can't find it anywhere on my machine or the
installation I downloaded.

Do I need to download the C source and build it?

Only if you're not on Win32 or a RPM compatible Linux.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

I'm writing a program and testing it in both Windows and Linux.
Unfortunately, it loads sloooooowly in linux, but zippy in windows. Both
platforms are on the same machine, so I don't think the problem need be one
of not enough memory.

My linux set-up is:

RedHat 6.2
running Gnome
not the latest and greatest of GTK and GLIB, but close.
Python 2.0
wxPython for Python 2.0

suggestions?

thanks!

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Hello Steve,

Saturday, December 02, 2000, 3:28:41 AM, you wrote:

I'm writing a program and testing it in both Windows and Linux.
Unfortunately, it loads sloooooowly in linux, but zippy in windows. Both
platforms are on the same machine, so I don't think the problem need be one
of not enough memory.

My linux set-up is:

RedHat 6.2
running Gnome
not the latest and greatest of GTK and GLIB, but close.
Python 2.0
wxPython for Python 2.0

suggestions?

thanks!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Try default GTK theme.

···

--
regards,
Niki

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Yep. changing the theme made all the difference. onto the next problem
(post to follow)...

thanks all!!

-S

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

so now that the windows are actually being rendered, I'm having the
following problem:

I have a dialog window (wxDialog) with a Notebook window as a child. I've
appended several pages to the notebook.
Problem is, the notebook pages are obviously being loaded correctly, but the
notebook won't show tabs. This all works in Windows, I should add.

I've played around with the sizes of the windows, the positioning, etc, and
even with a parent window that is plenty large and notebook pages
signifificantly smaller than the notebook window itself (and positioned
about 40 pixels below), I'm still not getting notebook tabs...

?

thanks.

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

I have a dialog window (wxDialog) with a Notebook window as a child. I've
appended several pages to the notebook.
Problem is, the notebook pages are obviously being loaded correctly, but

the

notebook won't show tabs. This all works in Windows, I should add.

Send a sample please.

I've played around with the sizes of the windows, the positioning, etc,

and

even with a parent window that is plenty large and notebook pages
signifificantly smaller than the notebook window itself (and positioned
about 40 pixels below), I'm still not getting notebook tabs...

It won't matter where or how the pages are positioned as the notebook will
resize and position them itself. How is the notebook positioned relative to
the dialog? Are the page windows children of the notebook or children of
the dialog?

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Send a sample please.

Code follows (first 3 classes are pages in the notebook; 4th class is a
dialog window containing the notebook in which I append the pages)...:

class IDPage(wxWindow):
## First page in the notebook
     def __init__(self, parent, id = -1, style = wxSIMPLE_BORDER):
          wxWindow.__init__(self, parent, id)
          self.SetBackgroundColour(wxNamedColour("LIGHT GREYwxPoint(3,3))

###### etc.... (2 more classes/pages similar to this)

class AddyInput(wxDialog):

     def __init__(self, parent, ID, title):
##Main notebook class

          wxDialog.__init__(self, parent, ID, title, wxPoint(100,100),
wxSize(560, 441))
          self.inputbook = wxNotebook(self, ID_INPUTMAIN)

          self.page1 = IDPage(self)
          self.page1.SetBackgroundColour(wxNamedColour("LIGHT GREY"))
          self.inputbook.AddPage(self.page1, ' Identity ')

          self.page2 = WebInfoPage(self)
          self.page2.SetBackgroundColour(wxNamedColour("LIGHT GREY"))
          self.inputbook.AddPage(self.page2, ' Web Info ')

          self.page3 = Phone_AddressInfoPage(self)
          self.page3.SetBackgroundColour(wxNamedColour("LIGHT GREY"))
          self.inputbook.AddPage(self.page3, ' Address and Phone ')

How is the notebook positioned relative to
the dialog?

notebook is given defaults... in Windows this doesn't seem to matter.. in
linux, it does matter as the default size is about 10x10 pixels; thus, in
linux I have resized the notebook window and tried positioning it anywhere
from 20 to 100 pixels below the top of the Dialog. In the most extreme
case, I get a 'notebook' window with empty space between its frame and the
surrounding frame of about 100 pixels on all sides, but still no tabs.

  Are the page windows children of the notebook or children of

the dialog?

not specified. In Windows it doesn't seem to matter though- seems to assign
the pages automatically to the notebook. as this may be different in Linux,
I'm off to try assigning the individual pages to the notebook as their
parent. fingers crossed.

thanks.

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

problem solved. you were right- by specifying 'self' instead of
'self.notebook' as argument, I was referencing the Dialog window rather than
the notebook window. duh. oops. still, it's strange that in Windows this
was overridden automatically...

thanks.

-S

···

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

problem solved. you were right- by specifying 'self' instead of
'self.notebook' as argument, I was referencing the Dialog window rather

than

the notebook window. duh. oops. still, it's strange that in Windows

this

was overridden automatically...

It's more likely that wxMSW was reacting to the error in a different (less
visible) way than wxGTK. (I don't see anything in wxMSW that is reparenting
the page window.)

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxPython.org Java give you jitters?
http://wxPROs.com Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users