Code:
class DialogBox(Frame):
Let me know whether this works.
class DialogBox(Frame):
while (true) {
cout<<"\n Enter the weight of the package to be delivered ";
cin>>weight;
if (cin.fail()) {
// Fix
while (true) {
cout<<"\n Enter the weight of the package to be delivered ";
cin>>weight;
if (cin.fail()) {
// Fix it and tell the user off.
} else {
break;
}
}
entryDigits = []
for i in self.entries:
if i.get():
entryDigits.append(int(i.get()))
if (cin.fail()) {
cin.clear();
string junk;
cin >> junk;
cout << "No more letters, please!" << endl;
}
entryDigits = []
for i in self.entries:
entryDigits.
EntryFrame.setStatus(self)
# Put stuff for EntryFrame class up here
class Controller(object):
def __init__(self):
self.myEntryFrame = EntryFrame(None, DIGITS)
myController = Controller()
self.myEntryFrame = EntryFrame(None, DIGITS)
while (true) {
wait for 10 ms
generate random number
display number
wait for 10 ms
backspace number
}
def evClear():
global q1_data, q2_data, q3_data, q3_data2
q1_data.delete(0,END)
q2_data.delete(0,END)
q3_data.delete(0,END)
q3_data2.delete(0,END)
myEntry.delete(0, END)
def moved(self):
x, y = self.get_pos()
if self.screen.is_pressed(games.K_LEFT):
x -= 1
if self.screen.is_pressed(games.K_UP):
y -= 1
if self.screen.is_pressed(games.K_RIGHT):
Leave a comment: