Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SipAndPuff4Butiá
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Santiago Freire Lopez
SipAndPuff4Butiá
Commits
a6c4ff6b
Commit
a6c4ff6b
authored
3 years ago
by
Santiago Freire Lopez
Browse files
Options
Downloads
Patches
Plain Diff
added morse guide command in keyboard module
parent
992b69ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dicts.py
+2
-1
2 additions, 1 deletion
dicts.py
principal.py
+5
-1
5 additions, 1 deletion
principal.py
with
7 additions
and
2 deletions
dicts.py
+
2
−
1
View file @
a6c4ff6b
...
...
@@ -95,7 +95,8 @@ morse = {
#Comandos especiales del programa
'
.-.-
'
:
'
EOM
'
,
'
---.
'
:
'
MAYUS
'
,
'
------
'
:
'
SALIR
'
,
'
---.-
'
:
'
GUIA
'
,
'
------
'
:
'
SALIR
'
,
}
...
...
This diff is collapsed.
Click to expand it.
principal.py
+
5
−
1
View file @
a6c4ff6b
...
...
@@ -210,7 +210,7 @@ def keyboard(window,salgo):
cambiarTextoGUI
(
'
_TRANSLATION_
'
,
window
,
resCaracter
)
#Si no recibí ningún caracter especial, presiono la tecla.
if
resCaracter
not
in
{
None
,
'
EOM
'
,
'
eom
'
,
'
MAYUS
'
,
'
mayus
'
,
'
SALIR
'
,
'
salir
'
}:
if
resCaracter
not
in
{
None
,
'
EOM
'
,
'
eom
'
,
'
MAYUS
'
,
'
mayus
'
,
'
GUIA
'
,
'
guia
'
,
'
SALIR
'
,
'
salir
'
}:
#Si los caracteres están en los que puede insertar pyautogui, presiono la tecla.
if
resCaracter
not
in
dicts
.
cEsp
:
...
...
@@ -237,6 +237,10 @@ def keyboard(window,salgo):
mayus
=
1
resCaracter
=
None
#Para abrir la guía Morse
elif
resCaracter
in
{
'
GUIA
'
,
'
guia
'
}:
subprocess
.
call
([
'
xdg-open
'
,
'
guide.jpg
'
])
#Para salir del programa
elif
resCaracter
in
{
'
SALIR
'
,
'
salir
'
}:
sg
.
PopupAutoClose
(
'
Saliendo del programa.
'
,
keep_on_top
=
True
,
title
=
'
Aviso
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment