On Dec 5, 2007 2:23 AM, johnf <[EMAIL PROTECTED]> wrote: > def _openDialog(self,evt): > # need to receive the evt (in this case a click or Hit) > theDialog=dabo.ui.dFileDialog(self) > theDialog.show()
*************DELETE********************* > if sys.platform == 'win32': > myseperator = "\\" # some should post why I needed > two slashes > else: > myseperator = "/" ****************DELETE******************* > > myReturnFileValue= theDialog.FileName > myReturnDirectory = theDialog.Directory > > self.filename.Value= myReturnDirectory + myseperator + > myReturnFileValue Change the last line to: self.filename.Value = os.path.join(myReturnDirectory, myReturnFileValue) That is a more Pythonic fix than Uwe's... Cheers, Nate L. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
