Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
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ç
LibreOffice
core
Commits
adefbff4
Kaydet (Commit)
adefbff4
authored
Nis 30, 2013
tarafından
László Németh
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#64082 logo: fix hide/showturtle
Change-Id: I1aa1152940697f6390155871c0128519211abddd
üst
6c670f63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
LibreLogo.py
librelogo/source/LibreLogo/LibreLogo.py
+5
-5
No files found.
librelogo/source/LibreLogo/LibreLogo.py
Dosyayı görüntüle @
adefbff4
...
...
@@ -456,7 +456,7 @@ def __initialize__():
_
.
doc
.
CurrentController
.
select
(
shape
)
shape
.
FillColor
,
transparence
=
__splitcolor__
(
_
.
areacolor
)
shape
.
LineColor
,
shape
.
LineTransparence
=
__splitcolor__
(
_
.
pencolor
)
el
s
e
:
el
if
shape
.
Visibl
e
:
_
.
areacolor
=
shape
.
FillColor
+
(
int
(
255.0
*
shape
.
FillTransparence
/
100
)
<<
24
)
_
.
pencolor
=
shape
.
LineColor
+
(
int
(
255.0
*
shape
.
LineTransparence
/
100
)
<<
24
)
if
shape
.
LineWidth
!=
round
((
1
+
_
.
pen
*
2
)
*
__PT_TO_TWIP__
/
__MM10_TO_TWIP__
)
and
shape
.
LineWidth
!=
round
(
__LINEWIDTH__
/
__MM10_TO_TWIP__
):
...
...
@@ -513,7 +513,7 @@ def __visible__(shape, visible = -1): # for OOo 3.2 compatibility
def
hideturtle
():
turtle
=
__getshape__
(
__TURTLE__
)
if
turtle
:
if
turtle
and
turtle
.
Visible
:
z
=
turtle
.
getPosition
()
z
=
__Point__
(
z
.
X
+
turtle
.
BoundRect
.
Width
/
2.0
,
z
.
Y
+
turtle
.
BoundRect
.
Height
/
2.0
)
turtle
.
PolyPolygon
=
__TURTLESHAPE__
[
1
]
...
...
@@ -524,7 +524,7 @@ def hideturtle():
def
showturtle
():
turtle
=
__getshape__
(
__TURTLE__
)
if
turtle
:
if
turtle
and
not
turtle
.
Visible
:
if
not
turtle
.
Parent
:
_
.
drawpage
.
add
(
turtle
)
z
=
turtle
.
getPosition
()
...
...
@@ -532,12 +532,12 @@ def showturtle():
turtle
.
PolyPolygon
,
turtle
.
RotateAngle
=
__TURTLESHAPE__
[
0
],
r
z
=
__Point__
(
z
.
X
-
turtle
.
BoundRect
.
Width
/
2.0
,
z
.
Y
-
turtle
.
BoundRect
.
Height
/
2.0
)
turtle
.
setPosition
(
z
)
__visible__
(
turtle
,
True
)
pencolor
(
_
.
pencolor
)
fillcolor
(
_
.
areacolor
)
pensize
(
_
.
pensize
/
__PT_TO_TWIP__
)
__visible__
(
turtle
,
True
)
_
.
doc
.
CurrentController
.
select
(
__getshape__
(
__TURTLE__
))
el
s
e
:
el
if
not
turtl
e
:
__initialize__
()
def
left
(
arg
=
None
):
...
...
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