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
8fd7eee6
Kaydet (Commit)
8fd7eee6
authored
Ara 26, 1991
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use new stdwinevents.
üst
ccfd6e10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
26 deletions
+20
-26
tablewin.py
Lib/lib-stdwin/tablewin.py
+5
-6
textwin.py
Lib/lib-stdwin/textwin.py
+5
-7
tablewin.py
Lib/stdwin/tablewin.py
+5
-6
textwin.py
Lib/stdwin/textwin.py
+5
-7
No files found.
Lib/lib-stdwin/tablewin.py
Dosyayı görüntüle @
8fd7eee6
...
...
@@ -16,6 +16,7 @@
import
stdwin
import
gwin
from
stdwinevents
import
*
def
open
(
title
,
data
):
# Public function to open a table window
#
...
...
@@ -163,15 +164,13 @@ def whichcol(w, h): # Return column number (may be >= len(w.data))
return
len
(
w
.
data
)
def
arrow
(
w
,
type
):
import
stdwinsupport
S
=
stdwinsupport
if
type
=
S
.
wc_left
:
if
type
=
WC_LEFT
:
incr
=
-
1
,
0
elif
type
=
S
.
wc_up
:
elif
type
=
WC_UP
:
incr
=
0
,
-
1
elif
type
=
S
.
wc_right
:
elif
type
=
WC_RIGHT
:
incr
=
1
,
0
elif
type
=
S
.
wc_down
:
elif
type
=
WC_DOWN
:
incr
=
0
,
1
else
:
return
...
...
Lib/lib-stdwin/textwin.py
Dosyayı görüntüle @
8fd7eee6
...
...
@@ -3,10 +3,8 @@
# Text windows, a subclass of gwin
import
stdwin
import
stdwinsupport
import
gwin
S
=
stdwinsupport
# Shorthand
from
stdwinevents
import
*
def
fixsize
(
w
):
...
...
@@ -68,7 +66,7 @@ def char(w, c): # Char method
fixsize
(
w
)
def
backspace
(
w
):
# Backspace method
void
=
w
.
text
.
event
(
S
.
we_command
,
w
,
S
.
wc_backspace
)
void
=
w
.
text
.
event
(
WE_COMMAND
,
w
,
WC_BACKSPACE
)
fixsize
(
w
)
def
arrow
(
w
,
detail
):
# Arrow method
...
...
@@ -76,14 +74,14 @@ def arrow(w, detail): # Arrow method
fixeditmenu
(
w
)
def
mdown
(
w
,
detail
):
# Mouse down method
void
=
w
.
text
.
event
(
S
.
we_mouse_down
,
w
,
detail
)
void
=
w
.
text
.
event
(
WE_MOUSE_DOWN
,
w
,
detail
)
fixeditmenu
(
w
)
def
mmove
(
w
,
detail
):
# Mouse move method
void
=
w
.
text
.
event
(
S
.
we_mouse_move
,
w
,
detail
)
void
=
w
.
text
.
event
(
WE_MOUSE_MOVE
,
w
,
detail
)
def
mup
(
w
,
detail
):
# Mouse up method
void
=
w
.
text
.
event
(
S
.
we_mouse_up
,
w
,
detail
)
void
=
w
.
text
.
event
(
WE_MOUSE_UP
,
w
,
detail
)
fixeditmenu
(
w
)
def
activate
(
w
):
# Activate method
...
...
Lib/stdwin/tablewin.py
Dosyayı görüntüle @
8fd7eee6
...
...
@@ -16,6 +16,7 @@
import
stdwin
import
gwin
from
stdwinevents
import
*
def
open
(
title
,
data
):
# Public function to open a table window
#
...
...
@@ -163,15 +164,13 @@ def whichcol(w, h): # Return column number (may be >= len(w.data))
return
len
(
w
.
data
)
def
arrow
(
w
,
type
):
import
stdwinsupport
S
=
stdwinsupport
if
type
=
S
.
wc_left
:
if
type
=
WC_LEFT
:
incr
=
-
1
,
0
elif
type
=
S
.
wc_up
:
elif
type
=
WC_UP
:
incr
=
0
,
-
1
elif
type
=
S
.
wc_right
:
elif
type
=
WC_RIGHT
:
incr
=
1
,
0
elif
type
=
S
.
wc_down
:
elif
type
=
WC_DOWN
:
incr
=
0
,
1
else
:
return
...
...
Lib/stdwin/textwin.py
Dosyayı görüntüle @
8fd7eee6
...
...
@@ -3,10 +3,8 @@
# Text windows, a subclass of gwin
import
stdwin
import
stdwinsupport
import
gwin
S
=
stdwinsupport
# Shorthand
from
stdwinevents
import
*
def
fixsize
(
w
):
...
...
@@ -68,7 +66,7 @@ def char(w, c): # Char method
fixsize
(
w
)
def
backspace
(
w
):
# Backspace method
void
=
w
.
text
.
event
(
S
.
we_command
,
w
,
S
.
wc_backspace
)
void
=
w
.
text
.
event
(
WE_COMMAND
,
w
,
WC_BACKSPACE
)
fixsize
(
w
)
def
arrow
(
w
,
detail
):
# Arrow method
...
...
@@ -76,14 +74,14 @@ def arrow(w, detail): # Arrow method
fixeditmenu
(
w
)
def
mdown
(
w
,
detail
):
# Mouse down method
void
=
w
.
text
.
event
(
S
.
we_mouse_down
,
w
,
detail
)
void
=
w
.
text
.
event
(
WE_MOUSE_DOWN
,
w
,
detail
)
fixeditmenu
(
w
)
def
mmove
(
w
,
detail
):
# Mouse move method
void
=
w
.
text
.
event
(
S
.
we_mouse_move
,
w
,
detail
)
void
=
w
.
text
.
event
(
WE_MOUSE_MOVE
,
w
,
detail
)
def
mup
(
w
,
detail
):
# Mouse up method
void
=
w
.
text
.
event
(
S
.
we_mouse_up
,
w
,
detail
)
void
=
w
.
text
.
event
(
WE_MOUSE_UP
,
w
,
detail
)
fixeditmenu
(
w
)
def
activate
(
w
):
# Activate method
...
...
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