samples/hello/hello_combobox.rb in glimmer-dsl-tk-0.0.25 vs samples/hello/hello_combobox.rb in glimmer-dsl-tk-0.0.26
- old
+ new
@@ -1,5 +1,6 @@
+
# Copyright (c) 2020-2021 Andy Maleh
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
@@ -42,10 +43,10 @@
root {
title 'Hello, Combobox!'
combobox {
- state 'readonly'
+ readonly true # this applies to text editing only (item selection still triggers a write to model)
text <=> [person, :country]
}
button {
text "Reset Selection"