hi Richard,
Richard Mendes wrote:
Hello wx Programmers,
I recently started using wxpython to create gui, I love it a lot but i
keep runing in some trouble with the listctrl option.I have the following setup
- frame
- notebook
- panel1- panel2
- window1
- window2now i want to create a listCtrl on the second window but i can't get
it to show. Can someone please be off some assistence.i have the following code
I don't know what's wrong with your code,
because I don't understand sizers very well
Because I'm not the only one, (looking at the many tools available for creating GUIs in wxPython),
I tested it with the tool I use, and everthing works perfect
Maybe you should take a look at one of these tools.
import wx
from gui_support import *
class Simple_Test_Form ( wx.MiniFrame ):
def __init__ ( self ):
wx.MiniFrame.__init__( self, None, style = wx.DEFAULT_FRAME_STYLE )
GUI = """
self.NB ,wx.Notebook ,style = wx.NO_BORDER
self.Page1 ,PanelVer, 1 ,name = "Hello"
self.list1 ,wx.ListCtrl ,style = wx.LC_REPORT
self.Page2 ,PanelVer, 11 ,name = "Page2"
window1 ,wx.Window
window2 ,wx.Window
"""
exec ( Create_wxGUI ( GUI ) )
self.list1.InsertColumn(0,'col1')
self.list1.InsertColumn(1,'col2')
window1.SetBackgroundColour(wx.RED)
window2.SetBackgroundColour(wx.BLUE)
if __name__ == '__main__':
app = wx.PySimpleApp ()
frame = Simple_Test_Form ()
frame.Show ( True )
app.MainLoop ()
Besides this point i have some ideas for this applications but i don't
really know if that's possible- There is a standard fileDialog as well as a progress bar available
as a pop up menu. I would rather like to integrate these dialogs in a
window / panel is this possible without coding it myself ?
Sorry I don't understand this question:
- what has a filedialog to do with a progress bar ?
- shouldn't a filedialog be modal ?
- under which OS do you want your application to work ?
- In the application above i also want to make the width of the
notebook 0 if a certain button is pressed, i thought if i just altered
the self.width or self.height this would be done automatically
unfortunatly i was mistaken, is there another way to do this ?
another sizer problem ?
Why not hide it ?
cheers,
Stef
···
Your help would be greatly appreciated,
Richard Mendes
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users