Re: [dabo-users] git clients

2014-10-08 Thread Ricardo Aráoz
El 08/10/14 a las 13:09, Paul McNett escibió: On 10/8/14, 7:50 AM, Werner wrote: Maybe another option could also be to use a cheat sheet: e.g.: http://www.git-tower.com/blog/git-cheat-sheet-detail/ Whatever you do, however you dive in, keep pushing on. You'll get it! I was a very slow

Re: [dabo-users] No binding to Key events

2013-12-15 Thread Ricardo Aráoz
El 14/12/2013 21:02, Paul McNett escribió: On 12/14/13 2:13 PM, Ricardo Aráoz wrote: I guess that's some wx thingy. Yes. How do I add this to the dabo dNumericBox object? Just to see if it's even going to work, edit dabo/dabo/ui/uiwx/dNumericBox.py, and in the __init__ method say: kwargs

Re: [dabo-users] No binding to Key events

2013-12-15 Thread Ricardo Aráoz
El 15/12/2013 10:36, Ricardo Aráoz escribió: Done. It works!!! So what are the options you wish to explore. There's something strange going on with events in windows. I am binding a dButton's KeyUp event. It would seem that the KeyUp event gets fired when the button GETS focus and the event

Re: [dabo-users] No binding to Key events

2013-12-15 Thread Ricardo Aráoz
El 15/12/2013 13:35, Paul McNett escribió: On Dec 15, 2013, at 8:19, Ricardo Aráoz ricar...@gmail.com wrote: El 15/12/2013 10:36, Ricardo Aráoz escribió: Done. It works!!! So what are the options you wish to explore. There's something strange going on with events in windows. I am binding

Re: [dabo-users] No binding to Key events

2013-12-15 Thread Ricardo Aráoz
El 15/12/2013 15:56, Ricardo Aráoz escribió: El 15/12/2013 13:35, Paul McNett escribió: On Dec 15, 2013, at 8:19, Ricardo Aráoz ricar...@gmail.com wrote: El 15/12/2013 10:36, Ricardo Aráoz escribió: Done. It works!!! So what are the options you wish to explore. There's something strange

[dabo-users] utf-8/unicode help?

2013-12-14 Thread Ricardo Aráoz
Hi, working with DataNav. I have no problems with my app in Ubuntu, but I'm having some trouble with accented characters (e.g. áéíóú) in windows. I think the problem is I'm doing something wrong but can't figure out what. These are CRUD forms automatically generated by dabo. In the GrdBase

Re: [dabo-users] utf-8/unicode help?

2013-12-14 Thread Ricardo Aráoz
El 14/12/2013 13:04, Paul McNett escribió: On 12/14/13 7:53 AM, Ricardo Aráoz wrote: Hi, working with DataNav. I have no problems with my app in Ubuntu, but I'm having some trouble with accented characters (e.g. áéíóú) in windows. I think the problem is I'm doing something wrong but can't

[dabo-users] Bug in onKeyChar/onKeyDown event

2013-12-14 Thread Ricardo Aráoz
Just got bitten by this one. This is in a dDropDownList, the code is : def onKeyChar(self, evt): print evt.EventData First keyed F4 then keyed s, the results where : {'unicodeChar': 115, 'mousePosition': (-286, 126), 'rawKeyFlags': 4063233, 'timestamp':

[dabo-users] SearchDropdown and a question

2013-12-14 Thread Ricardo Aráoz
This class might be useful to someone. In linux it works as I want it to. But in windows it seems F4 is assigned to drop down the list. I am not able to change the key to some other one (customers are used to F4). When the user keys F4 a browse window comes up allowing him to choose a row and

Re: [dabo-users] SearchDropdown and a question

2013-12-14 Thread Ricardo Aráoz
El 14/12/2013 15:16, John Fabiani escribió: I'm sure if this will help you but Dabo has dKeys and for me it has provided a complete cross platform solution (and I don't hard code any values). I do something like this: from dabo.ui import dKeys as dKeys if evt.keyCode in [dKeys.key_F7,

[dabo-users] No binding to Key events

2013-12-14 Thread Ricardo Aráoz
Sorry about all the questions today :-) Still trying to get things going in windows. I have this dNumericBox : objectRef = dabo.ui.dNumericBox(self, NameBase=TotalFc, DataSource=Compra, DataField=ImporteTotal,

Re: [dabo-users] SearchDropdown and a question

2013-12-14 Thread Ricardo Aráoz
El 14/12/2013 16:37, Paul McNett escribió: On 12/14/13 10:39 AM, Ricardo Aráoz wrote: Sadly it will not solve the issue of leaving the dDropDown closed when F4 is pressed in windows. Did you try catching dEvents.KeyDown and/or dEvents.KeyUp and saying evt.stop() in your handler? I

Re: [dabo-users] SearchDropdown and a question - Solved!

2013-12-14 Thread Ricardo Aráoz
El 14/12/2013 18:07, Ricardo Aráoz escribió: El 14/12/2013 16:37, Paul McNett escribió: On 12/14/13 10:39 AM, Ricardo Aráoz wrote: Sadly it will not solve the issue of leaving the dDropDown closed when F4 is pressed in windows. Did you try catching dEvents.KeyDown and/or dEvents.KeyUp

Re: [dabo-users] No binding to Key events

2013-12-14 Thread Ricardo Aráoz
El 14/12/2013 18:42, Paul McNett escribió: On 12/14/13 1:05 PM, Ricardo Aráoz wrote: Sorry about all the questions today :-) Still trying to get things going in windows. I have this dNumericBox : objectRef = dabo.ui.dNumericBox(self, NameBase=TotalFc

[dabo-users] Taming TabOrder

2013-12-01 Thread Ricardo Aráoz
I have this dPage in which I instantiate first a dPanel and after it a dSlidePanelControl which has three dSlidePanels instantiated inside it. The last control in the tab order inside the dPanel is a dNumericBox, the first control inside the first of the dSlidePanels is a dGrid. I would like

[dabo-users] Can't make sense of the api comment

2013-11-28 Thread Ricardo Aráoz
In the Bizobj API docs I find: lookupPKWithAdd(self, field, val) Runs a lookup in the specified field for the desired value. If found, returns the PK for that record. If not found, a new record is created with the 'field' column populated with 'val', and the new record's PK is returned. None of

[dabo-users] Bug in Bizobj.lookupPKWithAdd()

2013-11-28 Thread Ricardo Aráoz
lookupPKWithAdd adds a record to the Bizobj, but in this case it raises IvaFc.FacturaId may not be NULL. As you can see below this Bizobj is a child Bizobj with FillLinkFromParent set to True, so FacturaId should have been automatically added (as it effectively is when new() is issued). For

[dabo-users] How can I make a searchable dDropdownList?

2013-11-26 Thread Ricardo Aráoz
I'd like a normal dropdownlist that if you start typing will select the first match in the Choices. Has anyone done something like this? Any pointers? Thanks ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance:

Re: [dabo-users] How can I make a searchable dDropdownList?

2013-11-26 Thread Ricardo Aráoz
El 26/11/13 19:59, John Fabiani escribió: On 11/26/2013 12:55 PM, Ricardo Aráoz wrote: I'd like a normal dropdownlist that if you start typing will select the first match in the Choices. Has anyone done something like this? Any pointers? Thanks How about an autocomplete - would that work

Re: [dabo-users] A little help setting up a dGridSizer?

2013-11-25 Thread Ricardo Aráoz
El 25/11/13 11:20, Paul McNett escribió: On 11/24/13 11:36 AM, Ed Leafe wrote: On Nov 24, 2013, at 12:56 PM, Ricardo Aráoz ricar...@gmail.com wrote: Hi, having some trouble setting up a grid sizer. Just can't find what I'm doing wrong. I've simplified the thing down to a form with 3 rows

[dabo-users] Working with parent-child

2013-11-25 Thread Ricardo Aráoz
This is my first dabo form working with parent-child tables and I'm having newbie trouble. Parent is an Invoice table, child is an InvoiceItem table. Followed the pycon tutorial and set the LinkField property and set FillLinkFromParent to True in InvoiceItem. In Invoice imported InvoiceItem

Re: [dabo-users] A little help setting up a dGridSizer?

2013-11-25 Thread Ricardo Aráoz
El 25/11/13 15:50, Paul McNett escribió: On 11/25/13 9:00 AM, Ricardo Aráoz wrote: El 25/11/13 11:20, Paul McNett escribió: On 11/24/13 11:36 AM, Ed Leafe wrote: On Nov 24, 2013, at 12:56 PM, Ricardo Aráoz ricar...@gmail.com wrote: Hi, having some trouble setting up a grid sizer. Just can't

[dabo-users] Class designer bug

2013-11-24 Thread Ricardo Aráoz
Just added vertical sizer with 3 slots, in upper slot Add Controls from DataEnvironment, this is a SQLServer database if that helps. Platform: GTK Python Version: 2.7.3 on linux2 Dabo Version: 0.9.13 UI Version: 2.8.12.1 on wxGTK (gtk2) Traceback (most recent call last): File

[dabo-users] Class Designer - another bug

2013-11-24 Thread Ricardo Aráoz
After adding the input fields through the Add Controls from DataEnvironment wizard (selected a grid layout and left changing field names for later), changed some field names and types. Now apparently the first two rows in the grid have the RowExpand property set which I guess is for expanding

[dabo-users] A little help setting up a dGridSizer?

2013-11-24 Thread Ricardo Aráoz
Hi, having some trouble setting up a grid sizer. Just can't find what I'm doing wrong. I've simplified the thing down to a form with 3 rows. First and second row are text boxes while the third row has an edit box. I want the first two rows to keep their original sizes whilst the third should

Re: [dabo-users] A little help setting up a dGridSizer?

2013-11-24 Thread Ricardo Aráoz
El 24/11/13 16:36, Ed Leafe escribió: On Nov 24, 2013, at 12:56 PM, Ricardo Aráoz ricar...@gmail.com wrote: Hi, having some trouble setting up a grid sizer. Just can't find what I'm doing wrong. I've simplified the thing down to a form with 3 rows. First and second row are text boxes while

[dabo-users] Referencing a VirtualField from another Bizobject

2013-11-22 Thread Ricardo Aráoz
I have *Persona* Bizobj defined with VirtualField *FullName*: self.DataStructure = ( (Id, I, True, Persona, Id), (Codigo, C, False, Persona, Codigo), (CUIT, C, False, Persona, CUIT), (Nombre, C, False, Persona, Nombre),

Re: [dabo-users] Referencing a VirtualField from another Bizobject

2013-11-22 Thread Ricardo Aráoz
El 22/11/13 15:34, John Fabiani escribió: On 11/22/2013 10:24 AM, Ricardo Aráoz wrote: I have *Persona* Bizobj defined with VirtualField *FullName*: self.DataStructure = ( (Id, I, True, Persona, Id), (Codigo, C, False, Persona, Codigo

[dabo-users] Datanav - how to do some stuff right after the row has changed and before the controls update?

2013-11-22 Thread Ricardo Aráoz
I'm learning to work with the datanav. I'm modifying one of the CRUDs created by the AppWizard. My file has a foreign key that I wish the user to see as a drop down list, so I change the input control to a dDropdownList with ValueMode='Key'. I would usually set right there the Choices and

Re: [dabo-users] SOLVED - Datanav - how to do some stuff right after the row has changed and before the controls update?

2013-11-22 Thread Ricardo Aráoz
El 22/11/13 21:39, John Fabiani escribió: On 11/22/2013 02:45 PM, Ricardo Aráoz wrote: I'm learning to work with the datanav. I'm modifying one of the CRUDs created by the AppWizard. My file has a foreign key that I wish the user to see as a drop down list, so I change the input control

[dabo-users] Too many options

2013-11-08 Thread Ricardo Aráoz
I want to query the database from within a form which already has a bizObject defined. In the wiki HowToCreateATempCursor page recommends using getTempCursor() stating that The above will not change/touch/overwrite the CustomerBizObj data.. In the wiki DataSet page we get a DataSet and then

Re: [dabo-users] Too many options

2013-11-08 Thread Ricardo Aráoz
El 08/11/13 13:23, Paul McNett escribió: If you want to subfilter the tempcursor from above, it would be: ds = tc.getDataSet() ds.execute(select * from dataset where cust_state='CA') if ds: for row in ds: print ds[cust_name] else: print no records. Let's say

[dabo-users] Generating excel reports

2013-11-08 Thread Ricardo Aráoz
Not really Dabo related, but it might save someone some coding. Sorry the comments are in spanish. You need to import xlsxwriter. When I write about column formats below you will have to check xlsxwriter's documentation to get all the possible formats, but I am including a few examples below.

Re: [dabo-users] saving images

2013-11-02 Thread Ricardo Aráoz
El 30/10/13 20:54, Ricardo Aráoz escribió: El 30/10/13 09:32, de...@stuess.de escribió: Hi Ricardo, do you *really* have to save Image data in db fields? Could you not only save a link to a generic folder holding the images and only save the path of it? If the image is in the db

Re: [dabo-users] saving images

2013-10-30 Thread Ricardo Aráoz
El 30/10/13 09:32, de...@stuess.de escribió: Hi Ricardo, do you *really* have to save Image data in db fields? Could you not only save a link to a generic folder holding the images and only save the path of it? If the image is in the db it will be protected by db security and permissions,

Re: [dabo-users] Bizobj.RowNumChanged

2013-10-29 Thread Ricardo Aráoz
El 29/10/13 00:25, Ed Leafe escribió: On Oct 28, 2013, at 10:13 PM, Ricardo Aráoz ricar...@gmail.com wrote: But with no result. That is, nothing happens, actualizFoto() is not called. That is a UI event. For bizobjs, you should put your logic in the afterPointerMove() method. Thanks Ed

[dabo-users] saving images

2013-10-29 Thread Ricardo Aráoz
Hi, having some trouble saving images to db. The file: self.DataStructure = ( ('Id', 'I', True, 'Persona', 'Id'), ('Apellido', 'C', False, 'Persona', 'Apellido'), ('Nombre', 'C', False, 'Persona', 'Nombre'),

[dabo-users] Bizobj.RowNumChanged

2013-10-28 Thread Ricardo Aráoz
Hi, I have this Bizobj which I am subclassing so I can add special processing when changing rows. I must be doing something wrong but I can't find out what. I need to call self.actualizFoto() whenever the record changes. This is a partial declaration of the Bizobj:

[dabo-users] Updating a dImage DataSource

2013-10-03 Thread Ricardo Aráoz
Hi, I have this image in a panel foto = dabo.ui.dImage(self, RegID='Foto', DataSource='Tarjeta', DataField='Foto',

Re: [dabo-users] Updating a dImage DataSource

2013-10-03 Thread Ricardo Aráoz
El 03/10/13 18:13, Ed Leafe escribió: On Oct 3, 2013, at 3:53 PM, Ricardo Aráoz ricar...@gmail.com wrote: This works ok as far as that when I drag and drop a picture into the dImage the control will show the dropped picture. But it will not be persisted in the db. I mean, before committing I

Re: [dabo-users] Updating a dImage DataSource

2013-10-03 Thread Ricardo Aráoz
El 03/10/13 18:35, Ed Leafe escribió: On Oct 3, 2013, at 4:33 PM, Ricardo Aráoz ricar...@gmail.com wrote: Data is persisted through the Value property. What happens if you set that to the contents of the dropped file? It sort of works. Replaced self.Foto.Picture = filelist[0

Re: [dabo-users] Correction to dGridSizer

2013-09-25 Thread Ricardo Aráoz
El 25/09/13 00:04, Paul McNett escribió: On 9/24/13 7:10 AM, Ricardo Aráoz wrote: El 23/09/13 22:03, Paul McNett escribió: Want committer rights so you can make these fixes on your own? Ok Thanks What's your github username? raraoz ___ Post

Re: [dabo-users] Correction to dGridSizer

2013-09-24 Thread Ricardo Aráoz
El 23/09/13 22:03, Paul McNett escribió: On 9/23/13 9:37 AM, Ricardo Aráoz wrote: Hi, there is a bug in dGridSizer's setColExpand() and setRowExpand() methods. The line : if isinstance(expand, basestring): Should be changed to : if not isinstance(expand, basestring): As the colNum

[dabo-users] Regarding the use of dGridSizer

2013-09-23 Thread Ricardo Aráoz
Platform: GTK Python Version: 2.7.3 on linux2 Dabo Version: 0.9.13 UI Version: 2.8.12.1 on wxGTK (gtk2) Hi, I have this CRUD with two columns of objects, the label column and the txtbox column. Now I want the label column not to expand, and the txtbox column to expand as the form is

[dabo-users] Correction to dGridSizer

2013-09-23 Thread Ricardo Aráoz
Hi, there is a bug in dGridSizer's setColExpand() and setRowExpand() methods. The line : if isinstance(expand, basestring): Should be changed to : if not isinstance(expand, basestring): As the colNum argument should be switched with the expand argument only if expand is NOT an instance

Re: [dabo-users] Bizobjs and lookup tables

2013-09-13 Thread Ricardo Aráoz
El 13/09/13 01:06, John Fabiani escribió: On 09/12/2013 12:29 PM, Ricardo Aráoz wrote: I use a DataStructure, the field Tarjeta.Foto is a BLOB field containing a jpg picture. What data type should I put for this field in the DataStructure? FullName is a virtual field which is derived from

Re: [dabo-users] Bizobjs and lookup tables

2013-09-13 Thread Ricardo Aráoz
El 13/09/13 09:02, John Fabiani escribió: On 09/13/2013 04:37 AM, Ricardo Aráoz wrote: Thanks John. In the for loop I'm just doing an addField() for every field included in the data structure. Is this not needed? Is the data structure enough? Try removing it - if it works then you are OK

Re: [dabo-users] Bizobjs and lookup tables

2013-09-13 Thread Ricardo Aráoz
El 13/09/13 09:21, Ricardo Aráoz escribió: El 13/09/13 09:02, John Fabiani escribió: On 09/13/2013 04:37 AM, Ricardo Aráoz wrote: Thanks John. In the for loop I'm just doing an addField() for every field included in the data structure. Is this not needed? Is the data structure enough? Try

Re: [dabo-users] Bizobjs and lookup tables

2013-09-13 Thread Ricardo Aráoz
El 13/09/13 10:01, Paul McNett escribió: On 9/13/13 5:02 AM, John Fabiani wrote: On 09/13/2013 04:37 AM, Ricardo Aráoz wrote: Thanks John. In the for loop I'm just doing an addField() for every field included in the data structure. Is this not needed? Is the data structure enough? If you

Re: [dabo-users] Bizobjs and lookup tables

2013-09-13 Thread Ricardo Aráoz
El 13/09/13 10:01, Paul McNett escribió: On 9/13/13 5:02 AM, John Fabiani wrote: I see code that others post and I see routines that I know didn't work and I had to work around long ago. But I still see those simple work arounds in my code even though they are no longer required (or it's just

Re: [dabo-users] Bizobjs and lookup tables

2013-09-13 Thread Ricardo Aráoz
El 13/09/13 10:19, Paul McNett escribió: On 9/13/13 6:06 AM, Ricardo Aráoz wrote: If you want to specify the DataStructure, you need to also addField(). I've written a addFieldsFromDataStructure() method for this. Didn't know that method existed. I'll give it a try. I don't think I ever

Re: [dabo-users] Grid prefs?

2013-09-13 Thread Ricardo Aráoz
El 12/09/13 13:39, Paul McNett escribió: On 9/12/13 8:41 AM, Ricardo Aráoz wrote: So I've tried a couple things. Thanks for persisting! i) setting ColumnCount and then setting the properties of the different Columns[] will NOT persist column widths. Hm, that's a bug. I probably never

Re: [dabo-users] Grid prefs?

2013-09-12 Thread Ricardo Aráoz
El 12/09/13 01:46, Paul McNett escribió: On 9/11/13 8:40 PM, Ricardo Aráoz wrote: I've tried this (see below), and yet the grid won't remember the column widths. The window and other stuff are remembered. I've also tried the code with the import dabo.dPref as dPref and app.PreferenceManager

Re: [dabo-users] Grid prefs?

2013-09-12 Thread Ricardo Aráoz
El 12/09/13 08:02, Ricardo Aráoz escribió: El 12/09/13 01:46, Paul McNett escribió: On 9/11/13 8:40 PM, Ricardo Aráoz wrote: I've tried this (see below), and yet the grid won't remember the column widths. The window and other stuff are remembered. I've also tried the code with the import

Re: [dabo-users] Grid prefs?

2013-09-12 Thread Ricardo Aráoz
El 12/09/13 11:35, John Fabiani escribió: On 09/12/2013 04:50 AM, Ricardo Aráoz wrote: El 12/09/13 08:02, Ricardo Aráoz escribió: El 12/09/13 01:46, Paul McNett escribió: On 9/11/13 8:40 PM, Ricardo Aráoz wrote: I've tried this (see below), and yet the grid won't remember the column widths

Re: [dabo-users] Grid prefs?

2013-09-12 Thread Ricardo Aráoz
For completeness sake I would like to add that the code I used to open local pref database works and does not appear to interfere with the persistance of preferences. ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance:

[dabo-users] Bizobjs and lookup tables

2013-09-12 Thread Ricardo Aráoz
You may see below a Bizobj I've just coded. It works ok, but I would like a heads up upon how it is coded, or any suggestion that might prevent future glitches. This is Movimiento table with various lookup tables. Among them Tarjeta and Grupo which is referenced in Tarjeta (is it ok how I

[dabo-users] Grid prefs?

2013-09-11 Thread Ricardo Aráoz
How can I set the initial width of my grid columns to the user's last selection? I can see that the widths are being written in my prefs table, but I've not been able to find a straightforward way of setting them in my app. Is there a grid toggle or something? BTW, before app.start() I'm

[dabo-users] And yet another one?

2013-09-11 Thread Ricardo Aráoz
Was following the code examples in http://wiki.dabodev.com/HowToUseADGridSizer Code : --- gSzr = dabo.ui.dGridSizer() for pta in range(32): pta = dabo.ui.dImage(self, Picture='../resources/Imagenes/system-log-out.png',

Re: [dabo-users] And yet another one?

2013-09-11 Thread Ricardo Aráoz
El 11/09/13 13:56, Ed Leafe escribió: On Sep 11, 2013, at 11:41 AM, Ricardo Aráoz ricar...@gmail.com wrote: Was following the code examples in http://wiki.dabodev.com/HowToUseADGridSizer Code : --- gSzr = dabo.ui.dGridSizer() for pta

Re: [dabo-users] Grid prefs?

2013-09-11 Thread Ricardo Aráoz
El 11/09/13 14:00, Paul McNett escribió: On 9/11/13 8:41 AM, Ricardo Aráoz wrote: How can I set the initial width of my grid columns to the user's last selection? I can see that the widths are being written in my prefs table, but I've not been able to find a straightforward way of setting them

Re: [dabo-users] Grid prefs?

2013-09-11 Thread Ricardo Aráoz
El 11/09/13 15:53, Paul McNett escribió: On 9/11/13 11:31 AM, Ricardo Aráoz wrote: I connect manually in order to be able to place the pref database inside my app's directory structure. Is there another way of accomplishing this? You can put it in \Users\username\AppData\Roaming\your app name

Re: [dabo-users] Grid prefs?

2013-09-11 Thread Ricardo Aráoz
El 11/09/13 15:53, Paul McNett escribió: On 9/11/13 11:31 AM, Ricardo Aráoz wrote: I connect manually in order to be able to place the pref database inside my app's directory structure. Is there another way of accomplishing this? You can put it in \Users\username\AppData\Roaming\your app name

[dabo-users] Possible issue in dPageFrame?

2013-09-10 Thread Ricardo Aráoz
Platform: GTK Python Version: 2.7.3 on linux2 Dabo Version: 0.9.13 UI Version: 2.8.12.1 on wxGTK (gtk2) Is it possible that a bug has been introduced in PageFrame recently? The tabs are no longer visible (they were a few weeks ago). They are there alright, and when you click in their space

Re: [dabo-users] Possible issue in dPageFrame?

2013-09-10 Thread Ricardo Aráoz
El 10/09/13 12:21, Ed Leafe escribió: On Sep 10, 2013, at 10:07 AM, Ricardo Aráoz ricar...@gmail.com wrote: Platform: GTK Python Version: 2.7.3 on linux2 Dabo Version: 0.9.13 UI Version: 2.8.12.1 on wxGTK (gtk2) Is it possible that a bug has been introduced in PageFrame recently? The tabs

Re: [dabo-users] Possible issue in dPageFrame?

2013-09-10 Thread Ricardo Aráoz
El 10/09/13 16:50, Ed Leafe escribió: On Sep 10, 2013, at 11:25 AM, Ricardo Aráoz ricar...@gmail.com wrote: Short program showing the issue. I'm in Ubuntu 12.04, I can see the pages but not the tabs. Nevertheless if I click right above the pages, where the tabs should be, I am able to change

[dabo-users] Picture field

2013-09-06 Thread Ricardo Aráoz
So I need to CRUD a SQLite file with a BLOB field which will hold a picture. Are there any dabo code examples? Specifically about instantiating an image control to hold the picture and how to load the picture from a file. Thanks ___ Post Messages

Re: [dabo-users] A couple of inconsistencies

2013-08-14 Thread Ricardo Aráoz
El 14/08/13 09:44, Paul McNett escribió: On 8/9/13 12:39 PM, Ricardo Aráoz wrote: - within a form we are supposed to work with data through the Form's methods and not the bizobj. But dForm.new() will not take the parameters dBizobj.new() will take. In particular I've found no way to set field

Re: [dabo-users] A couple of inconsistencies

2013-08-14 Thread Ricardo Aráoz
El 14/08/13 11:13, Ed Leafe escribió: On Aug 14, 2013, at 9:59 AM, Ricardo Aráoz ricar...@gmail.com wrote: In my mind the form methods are there to be convenient for quick development, and the bizobj methods are closer to the metal and will have more options. But isn't that going against

Re: [dabo-users] Bug in dDataSet.execute()

2013-08-11 Thread Ricardo Aráoz
El 11/08/13 12:11, John Fabiani escribió: On 08/10/2013 08:42 AM, Ricardo Aráoz wrote: This is not only restricted to sqlite, I think this would affect anyone using two datasets to perform a query. Once the data is inside the data sets then it's the same no matter which db you are using

Re: [dabo-users] Bug in dDataSet.execute()

2013-08-10 Thread Ricardo Aráoz
El 10/08/13 12:24, John Fabiani escribió: On 08/09/2013 05:09 PM, Ricardo Aráoz wrote: El 09/08/13 20:58, Ricardo Aráoz escribió: It is probably broken. This is my input : dsDict = {carg : cargarDS} ds = tjtasDS.execute( ... select carg.NroTarjeta ... , ifnull(nullif

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 12:08, Paul McNett escribió: On 8/8/13 1:39 PM, Ricardo Aráoz wrote: Hi, I have this business object connected to a sqlite database. On pressing a button I want to connect to a new user selected database and replace the contents of the original database with the selected one. So I

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 12:08, Paul McNett escribió: On 8/8/13 1:39 PM, Ricardo Aráoz wrote: Hi, I have this business object connected to a sqlite database. On pressing a button I want to connect to a new user selected database and replace the contents of the original database with the selected one. So I

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 13:23, John Fabiani escribió: On 08/09/2013 09:11 AM, Ricardo Aráoz wrote: bizCargar = self.Application.biz.TarjetasBizobj(conn) ds = bizCargar.getDataSet() where did you retrieve the data? Try bizCargar.requery() to get the data first. Thanks John

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 14:49, John Fabiani escribió: On 08/09/2013 10:25 AM, Ricardo Aráoz wrote: El 09/08/13 14:06, John Fabiani escribió: On 08/09/2013 10:01 AM, Ricardo Aráoz wrote: El 09/08/13 13:23, John Fabiani escribió: On 08/09/2013 09:11 AM, Ricardo Aráoz wrote: bizCargar

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 14:49, John Fabiani escribió: On 08/09/2013 10:25 AM, Ricardo Aráoz wrote: El 09/08/13 14:06, John Fabiani escribió: On 08/09/2013 10:01 AM, Ricardo Aráoz wrote: El 09/08/13 13:23, John Fabiani escribió: On 08/09/2013 09:11 AM, Ricardo Aráoz wrote: bizCargar

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 14:49, John Fabiani escribió: On 08/09/2013 10:25 AM, Ricardo Aráoz wrote: El 09/08/13 14:06, John Fabiani escribió: On 08/09/2013 10:01 AM, Ricardo Aráoz wrote: El 09/08/13 13:23, John Fabiani escribió: On 08/09/2013 09:11 AM, Ricardo Aráoz wrote: bizCargar

Re: [dabo-users] Loading a data set.

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 15:15, Ricardo Aráoz escribió: Done. Changed the code you wanted me to try to what I though you really wanted. Run this code : bizTjtas = self.Form.getBizobj(dataSource='Tarjetas') bizTjtas.requery() ds = bizTjtas.getDataSet() bizTjtas.deleteAll

[dabo-users] Bug in dDataSet.execute()

2013-08-09 Thread Ricardo Aráoz
It is probably broken. This is my input : dsDict = {carg : cargarDS} ds = tjtasDS.execute( ... select carg.NroTarjeta ... , ifnull(nullif(carg.Apellido, ''), dataset.Apellido) ... , ifnull(nullif(carg.Nombre, ''), dataset.Nombre) ... ,

Re: [dabo-users] Bug in dDataSet.execute()

2013-08-09 Thread Ricardo Aráoz
El 09/08/13 20:58, Ricardo Aráoz escribió: It is probably broken. This is my input : dsDict = {carg : cargarDS} ds = tjtasDS.execute( ... select carg.NroTarjeta ... , ifnull(nullif(carg.Apellido, ''), dataset.Apellido) ... , ifnull(nullif(carg.Nombre

[dabo-users] Loading a data set.

2013-08-08 Thread Ricardo Aráoz
Hi, I have this business object connected to a sqlite database. On pressing a button I want to connect to a new user selected database and replace the contents of the original database with the selected one. So I create a temporary connection, and temporary business object in order to get the

[dabo-users] No prompt in Form.deleteAll()

2013-07-27 Thread Ricardo Aráoz
When issuing a this.Form.deleteAll() a prompt asks the user to confirm the action. In Form.delete() there is a prompt parameter (boolean) that I guess allows me to set off the confirmation prompt. It would be nice to have this in the deleteAll() method too. Thanks

[dabo-users] AttributeError:

2013-07-26 Thread Ricardo Aráoz
Hi, this is Ubuntu 12.04. Managed to reproduce the error in the interpreter, here goes the session. Python 2.7.3 (default, Apr 10 2013, 05:46:21) [GCC 4.6.3] on linux2 Type help, copyright, credits or license for more information. Imported NumPy 1.6.1, SciPy 0.9.0, Matplotlib 1.1.1rc Type

Re: [dabo-users] AttributeError: -- SOLVED

2013-07-26 Thread Ricardo Aráoz
Solved!!! I should have done conn = dabo.db.dConnection(ci) Don't know where I got the getConnection() from. Thanks. El 26/07/13 16:24, Ricardo Aráoz escribió: Hi, this is Ubuntu 12.04. Managed to reproduce the error in the interpreter, here goes the session. Python

Re: [dabo-users] Progress dialog

2013-07-26 Thread Ricardo Aráoz
El 26/07/13 21:48, Paul McNett escribió: On 7/25/13 3:40 PM, Ricardo Aráoz wrote: Two things I would like to change: i) I would like that the dialog shows itself upon creation (now I have to call dlg.show()). I tried with self.show() in the afterInitAll() but raises an error. dialogs should

[dabo-users] Progress dialog

2013-07-25 Thread Ricardo Aráoz
Hi, I would like to modify the following progress dialog which is running ok. It is called : dlg = Progreso(self) dlg.show() And it call a process (lectora.leerTjtas()) that communicates with a device through a serial interface and retrieves some data. It sends to this process a callback

[dabo-users] Fwd: Progress dialog

2013-07-25 Thread Ricardo Aráoz
Sorry about the format, corrected below. Mensaje original Asunto: Progress dialog Fecha: Thu, 25 Jul 2013 19:40:01 -0300 De: Ricardo Aráoz ricar...@gmail.com A: Dabo Users list dabo-users@leafe.com Hi, I would like to modify the following progress dialog

Re: [dabo-users] Fwd: Progress dialog

2013-07-25 Thread Ricardo Aráoz
So sorry, the progress dialog class code can be found properly spaced at https://gist.github.com/raraoz/6084475 El 25/07/13 19:47, Ricardo Aráoz escribió: Sorry about the format, corrected below. Mensaje original Asunto: Progress dialog Fecha: Thu, 25 Jul 2013 19

Re: [dabo-users] How to change the shown value of a text box

2013-06-19 Thread Ricardo Aráoz
El 19/06/13 09:39, Paul McNett escribió: On 6/17/13 11:33 AM, Ricardo Aráoz wrote: I'll thank any help and any code corrections. I'd love to try to help but I see that the code you posted is just a snippet: there are properties referenced that aren't shown. Can you post your entire codebase

[dabo-users] How to change the shown value of a text box

2013-06-17 Thread Ricardo Aráoz
So I wanted a textBox to only let hexadecimals be typed. And now I want it to put leading zeroes to the entered hex. This is my code: -- class tbNumber(dabo.ui.dTextBox): ''' Only allows typing

[dabo-users] dBitmapButton

2013-06-15 Thread Ricardo Aráoz
Hi, with a dImage I am able to scale an image to a certain size (controlling with ScaleMode how it is resized). Now with a dBitmapButton there is no ScaleMode and it will always clip the image. Is there a way to stretch or resize proportionally the image in the button?

[dabo-users] dTextBox - DisabledBackColor

2013-06-04 Thread Ricardo Aráoz
Does dTextBox have a DisabledBackColor property, or something similar? Haven't been able to find it. ___ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives:

[dabo-users] Super doubts

2013-06-04 Thread Ricardo Aráoz
i) Looking through the mails of this list I've found two uses of super a) self.super() b) super(MyDateTextBase, self).initProperties() A couple of questions : 1) What is the difference? What's the different use of both? 2) in b), is it really necessary to use

Re: [dabo-users] Super doubts

2013-06-04 Thread Ricardo Aráoz
El 04/06/13 13:34, Ed Leafe escribió: On Jun 4, 2013, at 11:06 AM, Ricardo Aráoz ricar...@gmail.com wrote: i) Looking through the mails of this list I've found two uses of super a) self.super() b) super(MyDateTextBase, self).initProperties() A couple of questions : 1

Re: [dabo-users] Super doubts

2013-06-04 Thread Ricardo Aráoz
El 04/06/13 14:02, Ed Leafe escribió: On Jun 4, 2013, at 11:41 AM, Ricardo Aráoz ricar...@gmail.com wrote: And yes, it is the class name. I know about PEP8, but I'm exercising my best judgement as PEP8 recommends in it's second topic. ;c) Who cares about PEP8? ;-) http

[dabo-users] Two column RadioList

2013-06-04 Thread Ricardo Aráoz
So today is Question Day... I need to use a dRadioList, but I need it to be split in two columns in this way : opt1 oopt2 o opt3 oopt4 o opt5 o. Now the only example I came by in the DaboDemo is in dGrid but it's a short list of choices and only one

Re: [dabo-users] Super doubts

2013-06-04 Thread Ricardo Aráoz
El 04/06/13 13:34, Ed Leafe escribió: On Jun 4, 2013, at 11:06 AM, Ricardo Aráoz ricar...@gmail.com wrote: i) Looking through the mails of this list I've found two uses of super a) self.super() b) super(MyDateTextBase, self).initProperties() A couple of questions : 1

Re: [dabo-users] Two column RadioList

2013-06-04 Thread Ricardo Aráoz
El 04/06/13 15:36, Ed Leafe escribió: On Jun 4, 2013, at 12:52 PM, Ricardo Aráoz ricar...@gmail.com wrote: I need to use a dRadioList, but I need it to be split in two columns in this way : opt1 oopt2 o opt3 oopt4 o opt5 o. Now the only example I came

Re: [dabo-users] Two column RadioList

2013-06-04 Thread Ricardo Aráoz
El 04/06/13 16:55, Ed Leafe escribió: On Jun 4, 2013, at 2:30 PM, Ricardo Aráoz ricar...@gmail.com wrote: I tried running a quick test, but it looks like dRadioList doesn't deal with grid sizers very well - the _checkSizer() method expects regular sizers. I don't know how that changed

Re: [dabo-users] Super doubts

2013-06-04 Thread Ricardo Aráoz
El 04/06/13 16:58, Ed Leafe escribió: On Jun 4, 2013, at 2:22 PM, Ricardo Aráoz ricar...@gmail.com wrote: I MUST be doing something wrong, here's part of my code : class pnlPuertoSerial(dabo.ui.dPanel): def __init__(self, *args, **kwargs): super(pnlPuertoSerial, self).__init__(self, *args

  1   2   3   4   >