Examples for dialogs.form_dialog() ?
Can anyone give me examples on dialogs.form() ?
Thanks in Advance
this topic is good to prove a posible fix for collect prívate data before to miss in trouble shoting
@cvp amazing content as usual! That is cool (the images).
Something interesting, what happens when you run one of these on your phone? For me, the segmented control is largely off the screen (form/dialog).
@madivad weird. I only use my iPad and form_dialog is a sheet of (0,0,500,500) in standard dialogs module. Normally, the code sets the width of the segmentedcontrol equal to the TetxField width, unless you did change something.
@madivad I just try on my (old 5S) iPhone and no problem at all, the dialog is full screen.
The only thing is that my script did not import the needed objc_util module.
from objc_util import *
@cvp just because this has got a little disjointed and long and a few edits have been made here and there, could you paste the entire source in the next response please?
I’m about to test something else, downloading pythonista on one of my old phones... I want to rule something out :)
I’d forgotten about your repos!
I ended up working it out, for me it’s the custom dialog where the control is misaligned, with the inbuilt control it aligns correctly
Edit: just confirmed, I downloaded that git, comment out line 89 (and join 90 back to the end of 89) and then edit the 'diag' at the end of the doc from:
diag = dialogs.form_dialog(title = 'Form Dialog', sections=form_list_of_sections)
diag = my_form_dialog(title = 'Form Dialog', sections=form_list_of_sections)
And run that on a smaller screen
@madivad All my last added fields types are processed in my_tableview_cell_for_row, thus they only work with the standard form_dialog.
dialogs._FormDialogController.tableview_cell_for_row = my_tableview_cell_for_row diag = dialogs.form_dialog(title = 'Form Dialog', sections=form_list_of_sections)