Skip to content

Add sg.Text as available field element / Add edit-protecting a button #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Add sg.Text as available field element / Add edit-protecting a button #138

wants to merge 5 commits into from

Conversation

ssweber
Copy link
Collaborator

@ssweber ssweber commented Mar 8, 2023

Only needed 1 change.

For update_element_states:
Didn't add to update_event_states, because you can't disable text.
Didn't know about adding it to visible=visible section.
I updated the update_event_states to be type(element) in to match.

Only needed 1 change.

I updated the update_event_states to be type(element) in to match.
Added ability to map_element a column-less element.
Allows edit-protecting any button using a key-name, and very little code.

I think it's pretty slick. But what do you think?
@ssweber ssweber changed the title Add sg.Text as available field element Add sg.Text as available field element / Add edit-protecting a button Mar 8, 2023
@ssweber
Copy link
Collaborator Author

ssweber commented Mar 8, 2023

Sorry, I had to add the Edit-protect a sg.CalendarButton to the other fix, because it had merge-conflicts. If you don't like the sg.CalendarButton, I can repull just the sg.Text one.

@ssweber
Copy link
Collaborator Author

ssweber commented Mar 8, 2023

Don't merge this yet, somehow it screws up the Quick Editor... looking into it

@ssweber
Copy link
Collaborator Author

ssweber commented Mar 8, 2023

k, its working now, and I made sure wouldn't have issues elsewhere

@PySimpleSQL
Copy link
Owner

PySimpleSQL commented Mar 8, 2023 via email

@ssweber
Copy link
Collaborator Author

ssweber commented Mar 8, 2023

Ok, I'll close and repull just the sg.Text. I'm too much of a noob to figure out how to do it in the main-loop! Do you need to use a timeout?

@ssweber ssweber closed this Mar 8, 2023
@ssweber ssweber deleted the Add-sg.Text-as-field-element branch March 8, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants