Skip to content

Commit c926716

Browse files
committed
A nice title for the file prompt
1 parent fe84f78 commit c926716

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bpython/gtk_.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def confirm(self, q):
275275
return response
276276

277277
def file_prompt(self, s):
278-
chooser = gtk.FileChooserDialog(action=gtk.FILE_CHOOSER_ACTION_SAVE,
278+
chooser = gtk.FileChooserDialog(title="File to save to",
279+
action=gtk.FILE_CHOOSER_ACTION_SAVE,
279280
buttons=(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL,gtk.STOCK_OPEN,gtk.RESPONSE_OK))
280281
chooser.set_default_response(gtk.RESPONSE_OK)
281282
chooser.set_current_name('test.py')

0 commit comments

Comments
 (0)