Apprendre à traduire à partir d'exemples de traductions humaines.
Réalisées par des traducteurs professionnels, des entreprises, des pages web ou traductions disponibles gratuitement.
break if-else
Διακοπή if- else
Dernière mise à jour : 2011-10-23
Fréquence d'utilisation : 1
Qualité :
insert an if...else template
Εισαγωγή προτύπου if...else
Dernière mise à jour : 2014-08-20
Fréquence d'utilisation : 1
Qualité :
if the checkbutton is toggled from on to off, we want the window title to disappear. if it's toggled from off to on, we want it to reappear. we can tell which way it was toggled by testing to see whether it's active (checked) or not afterwards. a simple if / else statement which calls the checkbutton's get_active() method will work for this.
Εάν το πλήκτρο ελέγχου εναλλάσσεται από ενεργό σε ανενεργό, θέλουμε ο τίτλος του παραθύρου να εξαφανιστεί. Εάν εναλλάσσεται από ανενεργό σε ενεργό, το θέλουμε να επανεμφανίζεται. Μπορούμε να πούμε με ποιο τρόπο εναλλάχτηκε δοκιμάζοντας να δούμε εάν είναι ενεργό (σημειωμένο) ή όχι κατόπιν. Μια απλή πρόταση if / else που καλεί τη μέθοδο get_active() του πλήκτρου ελέγχου θα δουλέψει για αυτό.