Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 76875b2

Browse files
Update addressbook.py
1 parent c08f3e0 commit 76875b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎Address-Book/addressbook.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def select_task_by_name():
9494
cur.execute("SELECT * FROM tasks WHERE name=?", (Name.get(),))
9595
rows = cur.fetchall()
9696
if(len(rows)==0):
97-
9897
inputDialog = MyDialog(root)
9998
root.wait_window(inputDialog.top)
10099
else:
@@ -142,7 +141,6 @@ def select_all_tasks():
142141
r_set=conn.execute('''SELECT * from tasks''');
143142
i=0
144143
top = Toplevel(root)
145-
#top.geometry('300x300')
146144
for student in r_set:
147145
list_of_names.append(student[1])
148146
for j in range(len(student)):
@@ -151,8 +149,10 @@ def select_all_tasks():
151149
e.insert(END, student[j])
152150
i=i+1
153151
okButton= Button(top, text=' ok ', command=top.destroy)
152+
if(j==0):
153+
j=1
154154
okButton.grid(row=i+3, column=j-1)
155-
#okButton.insert(END, student[j])
155+
156156
'''
157157
Getting the path of database and defining the table to be created
158158
'''

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /