On Feb 14, 2014, at 4:54 AM, bruno gallart <[email protected]> wrote:

> 1er question :
> I have installed pyEnchant because i want to have a spellchecker for my 
> notes. I did a test and I put the " import enchant " in my little code links 
> to a button that launchs the spellchecker like this :
> 
> 
> # -*- coding: utf-8 -*-
> ### Dabo Class Designer code. You many freely edit the code,
> ### but do not change the comments containing:
> ###         'Dabo Code ID: XXXX',
> ### as these are needed to link the code to the objects.
> 
> ## *!* ## Dabo Code ID: dButton-dForm
> def onHit(self, evt):
> 
> 
>    import enchant
>    d = enchant.Dict("oc_FR")
>    reponse = d.check(self.Form.entree.Value)
>    self.Form.sortie.Value = reponse
> 
> 
> All works fine but I think that is not good why in this part of code and not 
> somewhere more general  but I don't found where I must (to be logic) put my 
> code. I have tried in the __init__.py of /Bizobj, __init__.py of the /ui but 
> nothing works.

There is a button on the Code Editor window of the Class Designer labeled 
'Manage Imports'. Click that, and you can add all the import statements you 
need for that form.

> 2eme question :
> 
> when I worked on the little screen (2 boxText and 1 button) for my test of 
> spellchercker, I have founded in the repertory /ui  many files " 
> tmp..xxxxx...cdxml " and one was make in python's file   ex : " tmps12eq5.py 
> " "tmps12eq5-code.py". Have did a mistake in my manipulation ?

The Class Designer creates these temporary files when you test your design, but 
they should be cleaned up after running the test. They can remain if the app 
crashes; in that case, you can delete them.


-- Ed Leafe



--- StripMime Report -- processed MIME parts ---
multipart/signed
  text/plain (text body -- kept)
  application/pgp-signature
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to