mike driscoll szgupvesgcomarshalliaus hi message 1 date thu 28 feb 2008 143412 0530 knish subject pythonwin32 createtoolbar kpitckaew45pythonorg messageid 96tykr5v0478398296t241l1047a3d8gh61y4r510wnamailgmailcom contenttype textplain charsetiso88591 hi usrbinpython panelspy import wx class panelswxframe def __init__self parent id title wxframe__init__self parent id title hbox wxboxsizerwxhorizontal splitter wxsplitterwindowself 1 vbox1 wxboxsizerwxvertical panel1 wxpanelsplitter 1 panel11 wxpanelpanel1 1 size1 40 panel11setbackgroundcolour53728c st1 wxstatictextpanel11 1 feeds 5 5 st1setforegroundcolourwhite panel12 wxpanelpanel1 1 stylewxborder_sunken panel12setbackgroundcolourwhite vbox1addpanel11 0 wxexpand vbox1addpanel12 1 wxexpand panel1setsizervbox1 vbox2 wxboxsizerwxvertical panel2 wxpanelsplitter 1 panel21 wxpanelpanel2 1 size1 40 stylewxno_border st2 wxstatictextpanel21 1 articles 5 5 st2setforegroundcolourwhite panel21setbackgroundcolour53728c panel22 wxpanelpanel2 1 stylewxborder_raised panel22setbackgroundcolourwhite vbox2addpanel21 0 wxexpand vbox2addpanel22 1 wxexpand panel2setsizervbox2 toolbar selfcreatetoolbarself toolbaraddlabeltool1 exit wxbitmapiconsstock_exitpng toolbarrealize selfbindwxevt_tool selfexitapp id1 hboxaddsplitter 1 wxexpand wxtop wxbottom 5 selfsetsizerhbox selfcreatestatusbar splittersplitverticallypanel1 panel2 selfcentre selfshowtrue def exitappself event selfclose app wxapp panelsnone 1 panels appmainloop createtoolbar gives error look attachment may get work successfully brgds knish first wxpython question pywin32 question posting httpwxpythonorgmaillistphp secondly sent code work need change line 41 toolbar selfcreatetoolbarself toolbar selfcreatetoolbar use images code need provide added following line right one ico wxartprovidergetbitmapwxart_quit wxart_toolbar 1616 changed toolbaraddlabeltool1 exit wxbitmapiconsstock_exitpng toolbaraddlabeltool1 exit ico see httpwwwwxpythonorgdocsapiwxartproviderclasshtml information generic icons wxpython full code changes import wx class panelswxframe def __init__self parent id title wxframe__init__self parent id title hbox wxboxsizerwxhorizontal splitter wxsplitterwindowself 1 vbox1 wxboxsizerwxvertical panel1 wxpanelsplitter 1 panel11 wxpanelpanel1 1 size1 40 panel11setbackgroundcolour53728c st1 wxstatictextpanel11 1 feeds 5 5 st1setforegroundcolourwhite panel12 wxpanelpanel1 1 stylewxborder_sunken panel12setbackgroundcolourwhite vbox1addpanel11 0 wxexpand vbox1addpanel12 1 wxexpand panel1setsizervbox1 vbox2 wxboxsizerwxvertical panel2 wxpanelsplitter 1 panel21 wxpanelpanel2 1 size1 40 stylewxno_border st2 wxstatictextpanel21 1 articles 5 5 st2setforegroundcolourwhite panel21setbackgroundcolour53728c panel22 wxpanelpanel2 1 stylewxborder_raised panel22setbackgroundcolourwhite vbox2addpanel21 0 wxexpand vbox2addpanel22 1 wxexpand panel2setsizervbox2 toolbar selfcreatetoolbar ico wxartprovidergetbitmapwxart_quit wxart_toolbar 1616 toolbaraddlabeltool1 exit ico toolbarrealize selfbindwxevt_tool selfexitapp id1 hboxaddsplitter 1 wxexpand wxtop wxbottom 5 selfsetsizerhbox selfcreatestatusbar splittersplitverticallypanel1 panel2 selfcentre selfshowtrue def exitappself event selfclose app wxapp0 panelsnone 1 panels appmainloop future sure post wxpython group question gui toolkit need help mark hammonds win32 modules drop us line mike _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 tue 05 aug 2008 224357 0600 pythonwin32 createtoolbar