RE: [Boa Constr] Re: wxgenericDirCtrl
Status: Beta
Brought to you by:
riaan
From: Frans P. <fap...@ho...> - 2005-05-13 10:53:09
|
Hello Werner, I tired, but failed. I get Atribute error: .... instance has no attibute 'Bind' Do you also know how to reveal teh drive names they are no visible. Do you suggest I move up to the next Boa? With best regards, Frans. >From: "Werner F. Bruhin" <wer...@fr...> >To: boa...@li... >Subject: [Boa Constr] Re: wxgenericDirCtrl >Date: Fri, 13 May 2005 12:08:03 +0200 >MIME-Version: 1.0 >Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by >mc10-f11.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 13 May 2005 >03:20:28 -0700 >Received: from projects.sourceforge.net (sc8-sf-list2-b.sourceforge.net >[10.3.1.8])by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTPid >F306F8950A; Fri, 13 May 2005 03:20:27 -0700 (PDT) >Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] >helo=sc8-sf-mx1.sourceforge.net)by sc8-sf-list2.sourceforge.net with esmtp >(Exim 4.30)id 1DWXGN-0000SD-7Nfor >boa...@li...; Fri, 13 May 2005 03:19:23 >-0700 >Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org)by >sc8-sf-mx1.sourceforge.net with esmtp (TLSv1:AES256-SHA:256)(Exim 4.41)id >1DWXGM-0001us-7Rfor boa...@li...; Fri, 13 >May 2005 03:19:23 -0700 >Received: from root by ciao.gmane.org with local (Exim 4.43)id >1DWX87-0004yc-V3for boa...@li...; Fri, 13 >May 2005 12:10:51 +0200 >Received: from bordeaux-1-62-147-59-212.dial.proxad.net ([62.147.59.212]) > by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id >1AlnuQ-0007hv-00 for <boa...@li...>; >Fri, 13 May 2005 12:10:51 +0200 >Received: from werner.bruhin by bordeaux-1-62-147-59-212.dial.proxad.net >with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ><boa...@li...>; Fri, 13 May 2005 12:10:51 >+0200 >X-Message-Info: vAu4ZEtdRiiDTkC3MEFT+1t6gGgJN/MlpRkPyCDpPng= >X-Injected-Via-Gmane: http://gmane.org/ >Lines: 131 >References: <428...@ch...> ><BAY...@ph...l> >X-Complaints-To: us...@se... >X-Gmane-NNTP-Posting-Host: bordeaux-1-62-147-59-212.dial.proxad.net >User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) >Gecko/20040910 >X-Accept-Language: en-us, en >X-Spam-Score: 0.1 (/) >X-Spam-Report: Spam Filtering performed by sourceforge.net.See >http://spamassassin.org/tag/ for more details.Report problems to >http://sf.net/tracker/?func=add&group_id=1&atid=2000010.0 >SF_CHICKENPOX_PARATHESES_OPEN BODY: Text interparsed with (0.0 >SF_CHICKENPOX_PERIOD BODY: Text interparsed with .0.0 SF_CHICKENPOX_SLASH > BODY: Text interparsed with /0.0 SF_CHICKENPOX_MINUS BODY: Text >interparsed with -0.0 SF_CHICKENPOX_COLON BODY: Text interparsed with >:0.0 SF_CHICKENPOX_UNDERSCORE BODY: Text interparsed with _0.0 >SF_CHICKENPOX_EQUAL BODY: Text interparsed with =0.0 SF_CHICKENPOX_AT > BODY: Text interparsed with @0.0 SF_CHICKENPOX_APOSTROPHE BODY: Text >interparsed with '0.0 AWL AWL: From: address is in the >auto white-list >Errors-To: boa...@li... >X-BeenThere: boa...@li... >X-Mailman-Version: 2.0.9-sf.net >Precedence: bulk >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/boa-constructor-users>,<mailto:boa...@li...?subject=unsubscribe> >List-Id: Help and discussion <boa-constructor-users.lists.sourceforge.net> >List-Post: <mailto:boa...@li...> >List-Help: ><mailto:boa...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/boa-constructor-users>,<mailto:boa...@li...?subject=subscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=boa-constructor-users> >X-Original-Date: Fri, 13 May 2005 12:08:03 +0200 >Return-Path: boa...@li... >X-OriginalArrivalTime: 13 May 2005 10:20:28.0669 (UTC) >FILETIME=[62AD92D0:01C557A5] > >Hi Frans, > >I played around with it this morning, initally I thought the problem is due >to Boa not showing the tree events, but as they seem to be handled a bit >different then standard I think you have to do them manually. > >See the attached file, also in Boa 0.4 and wxPython 2.6 you should be able >to adapt it in 0.3.1 by changing the event bindings back to the old style. > >See you >Werner > >F.A. Pinkse wrote: > >>Hi All, >> >> >>My appolgies for the Dup. I did hit the return too fast.. :-) >> >> >>Frans. >> >>F.A. Pinkse wrote: >> >>>Hi All, >>> >>>I was planning to use the wxgenericDirCtrl. >>>Is anyone familiar with this control and can tell me: >>>----how do I get the drive names. >>>----how do I get the events working? >>> >>>I am using BOA 0.3.1 >>> >>> >>>Thanks, >>> >>> >>>Frans. >>> >>> >>>------------------------------------------------------- >>>This SF.Net email is sponsored by Oracle Space Sweepstakes >>>Want to be the first software developer in space? >>>Enter now for the Oracle Space Sweepstakes! >>>http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click >>>_______________________________________________ >>>Boa-constructor-users mailing list >>>Boa...@li... >>>https://lists.sourceforge.net/lists/listinfo/boa-constructor-users >>> >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by Oracle Space Sweepstakes >>Want to be the first software developer in space? >>Enter now for the Oracle Space Sweepstakes! >>http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > >#Boa:Frame:Frame1 > >import wx > >def create(parent): > return Frame1(parent) > >[wxID_FRAME1, wxID_FRAME1GENERICDIRCTRL1, >] = [wx.NewId() for _init_ctrls in range(2)] > >class Frame1(wx.Frame): > def _init_ctrls(self, prnt): > # generated method, don't edit > wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt, > pos=wx.Point(391, 311), size=wx.Size(394, 190), > style=wx.DEFAULT_FRAME_STYLE, title='Frame1') > self.SetClientSize(wx.Size(386, 156)) > > self.genericDirCtrl1 = wx.GenericDirCtrl(defaultFilter=0, dir='.', > filter='All files (*.*)|*.*|Python files (*.py)|*.py', > id=wxID_FRAME1GENERICDIRCTRL1, name='genericDirCtrl1', > parent=self, pos=wx.Point(0, 0), size=wx.Size(386, 156), > style=wx.DIRCTRL_SHOW_FILTERS | wx.DIRCTRL_3D_INTERNAL | >wx.SUNKEN_BORDER) > > def __init__(self, parent): > self._init_ctrls(parent) > > treeCtrl = self.genericDirCtrl1.GetTreeCtrl() > self.Bind(wx.EVT_TREE_SEL_CHANGED, > self.OnGenericDirCtrl1TreeSelChanged, > treeCtrl) > self.Bind(wx.EVT_TREE_ITEM_ACTIVATED, > self.OnGenericDirCtrl1TreeItemActivated, > treeCtrl) > > def OnGenericDirCtrl1TreeSelChanged(self, event): > obj = event.GetEventObject() > print 'changed' > print obj > print self.genericDirCtrl1.GetFilePath() > event.Skip() > > def OnGenericDirCtrl1TreeItemActivated(self, event): > obj = event.GetEventObject() > print 'activated' > print obj > print self.genericDirCtrl1.GetPath() > event.Skip() > >if __name__ == '__main__': > app = wx.PySimpleApp() > wx.InitAllImageHandlers() > frame = create(None) > frame.Show() > > app.MainLoop() _________________________________________________________________ Talk with your online friends with MSN Messenger http://messenger.msn.nl/ |