Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
bbdc0655
Kaydet (Commit)
bbdc0655
authored
Eki 30, 2015
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25507: move test-specific imports to test function (idlelib.IOBinding).
üst
dcc13ef1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
IOBinding.py
Lib/idlelib/IOBinding.py
+8
-6
htest.py
Lib/idlelib/idle_test/htest.py
+5
-3
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
bbdc0655
import
codecs
from
codecs
import
BOM_UTF8
import
os
import
os
import
re
import
shlex
import
shlex
import
sys
import
sys
import
codecs
import
tempfile
import
tempfile
import
tkinter.filedialog
as
tkFileDialog
import
tkinter.filedialog
as
tkFileDialog
import
tkinter.messagebox
as
tkMessageBox
import
tkinter.messagebox
as
tkMessageBox
import
re
from
tkinter
import
*
from
tkinter.simpledialog
import
askstring
from
tkinter.simpledialog
import
askstring
from
idlelib.configHandler
import
idleConf
from
codecs
import
BOM_UTF8
# Try setting the locale, so that we can find out
# Try setting the locale, so that we can find out
# what encoding to use
# what encoding to use
...
@@ -525,7 +524,10 @@ class IOBinding:
...
@@ -525,7 +524,10 @@ class IOBinding:
self
.
editwin
.
update_recent_files_list
(
filename
)
self
.
editwin
.
update_recent_files_list
(
filename
)
def
_io_binding
(
parent
):
# htest #
def
_io_binding
(
parent
):
# htest #
root
=
Tk
()
from
tkinter
import
Toplevel
,
Text
from
idlelib.configHandler
import
idleConf
root
=
Toplevel
(
parent
)
root
.
title
(
"Test IOBinding"
)
root
.
title
(
"Test IOBinding"
)
width
,
height
,
x
,
y
=
list
(
map
(
int
,
re
.
split
(
'[x+]'
,
parent
.
geometry
())))
width
,
height
,
x
,
y
=
list
(
map
(
int
,
re
.
split
(
'[x+]'
,
parent
.
geometry
())))
root
.
geometry
(
"+
%
d+
%
d"
%
(
x
,
y
+
150
))
root
.
geometry
(
"+
%
d+
%
d"
%
(
x
,
y
+
150
))
...
...
Lib/idlelib/idle_test/htest.py
Dosyayı görüntüle @
bbdc0655
...
@@ -189,9 +189,11 @@ _grep_dialog_spec = {
...
@@ -189,9 +189,11 @@ _grep_dialog_spec = {
_io_binding_spec
=
{
_io_binding_spec
=
{
'file'
:
'IOBinding'
,
'file'
:
'IOBinding'
,
'kwds'
:
{},
'kwds'
:
{},
'msg'
:
"Test the following bindings
\n
"
'msg'
:
"Test the following bindings.
\n
"
"<Control-o> to display open window from file dialog.
\n
"
"<Control-o> to open file from dialog.
\n
"
"<Control-s> to save the file
\n
"
"Edit the file.
\n
"
"<Control-s> to save the file.
\n
"
"Check that changes were saved by opening the file elsewhere."
}
}
_multi_call_spec
=
{
_multi_call_spec
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment