Ed Leafe ha scritto:
> On Oct 27, 2008, at 4:04 PM, Emanuele Gesuato wrote:
>
>> I'm new to the dabo world. I'm just looking if i could use dabo for a
>> simple application.
>>
>> I'm trying the class designer and it seems great (but somewhat
>> slow). I
>> have a very basic question about it: in a dForm i have two
>> dListControl
>> that have the same content, the two instances shares the following
>> code:
>> self.addColumn('name')
>> self.addColumn('surname')
>> self.autoSizeColumns()
>>
>> i don't want to duplicate the code in the "onCreate" of the two
>> component, i would like to add the code in a module "external" to the
>> various widgets but i don't find any way to do it.
> On the code editor window of the Class Designer there is a button
> 'Manage Imports'. Click that, and in the dialog that pops up, enter
> any import statements you need. Since the file saved by the Class
> Designer is rendered into a single class file at runtime, those
> imports will be in scope in your method code.
I see that i can import new modules but i don't find any way on how to
add it to the code logic. Where could i write the specific module ?
I mean, if i write in the manage imports popup the string "import alfa"
where could i write the "alfa" module ? (yes dumb question :) )
Have i to write it in the same directory of the cdxml ? It's so simple ?
I've tried to write the module in the same directory and it works but i
when i modify the module the application runs with the old version. If i
close and reopen the classdesigner the app runs with the right version
of the module. What i'm doing wrong ?
>> I'm just trying to show in the first dListBox a list of person
>> retrieved
>> in a file (no operation related to a database for now). What's the
>> best
>> approach ? Should i create a bizObj ?
>
> You don't need a bizobj, since the main function of a bizobj is to
> handle the logic behind reading and writing to a table in a database.
> Instead, you could do something like this in the afterInit() method of
> the list:
>
> self.Choices = file("personList.txt").read().splitlines()
>
> If you have any other questions, don't hesitate to post them here.
Is it simple to integrate dabo with py2exe ?
It's my first time in dabo: is it more convenient to use your gui tools
or using dabo directly ?
> -- Ed Leafe
>
Thanks,
Emanuele
_______________________________________________
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/[EMAIL PROTECTED]