Veröffentlicht 7. Juni 200223 j Hallo an alle! ich hab da ein kleines Problem mit Perl/TK und hoffe, ihr könnt mir da weiterhelfen. Zum Programm: Nachdem der User Daten in die entsprechenden Felder eingetragen hat, klickt er auf einen Button und wird gefragt, ob er alles richtig eingegeben hat. Wenn er dies bejaht, sollen die Felder nicht mehr änderbar sein - also auf 'disabled' gesetzt werden. Wie erreiche ich das? Danke im Voraus! MfG Jusky
10. Juni 200223 j hi jusky, also wenn du ein Entry Feld verwendet hast geht das so: Name: state Class: State Switch: -state Specifies one of two states for the entry: normal or disabled. If the entry is disabled then the value may not be changed using widget methods and no insertion cursor will be displayed, even if the input focus is in the widget. $eingabe_feld->configure(-state => disabled); oder so?! probiers mal aus oder schreib wie du´s machst jj
11. Juni 200223 j @ root@localhost: Hallo, danke nochmal für deine Antwort!!! Bin übrigens auch auf's gleiche Ergebnis gekommen. In meiner Verzweiflung hab ich halt das Motto angewandt: "Learning by doing" - und es hat geklappt! MfG, Jusky
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.