Hi all, :-)

I try Dabo because i want to do a little personal EDM and I like the MVC's logic . I have 2 questions :


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.


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 ?


Thanks for your patience,

Regards,
Bruno




--- StripMime Report -- processed MIME parts ---
multipart/alternative
 text/plain (text body -- kept)
 text/html
---
_______________________________________________
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