Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
example-software
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gitlab-pages
example-software
Commits
581af472
Commit
581af472
authored
Mar 31, 2017
by
Jorge Suárez de Lis
💭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First commit
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
0 deletions
+73
-0
README.md
README.md
+12
-0
software.py
software.py
+61
-0
No files found.
README.md
0 → 100644
View file @
581af472
# Existing Software
This Python Script launches a window telling us it just exists and please, notice it exists.
## Website
This software has a website accessible through https://gitlab-pages.pages.citius.usc.es/existing-software.
The website has been built with the instructions specified in https://gitlab-pages.pages.citius.usc.es/.
Just click the "Existing repository" tab.
software.py
0 → 100755
View file @
581af472
#!/usr/bin/python
# -*- coding: UTF-8 -*-
#
import
os
import
thread
import
StringIO
import
sys
import
string
from
gi.repository
import
GLib
,
Gtk
,
GObject
import
signal
# Fix enconding in older Python
reload
(
sys
)
sys
.
setdefaultencoding
(
'utf8'
)
class
NoticeMeSenpai
:
def
__init__
(
self
):
self
.
window
=
Gtk
.
Window
()
self
.
window
.
set_position
(
Gtk
.
WindowPosition
.
CENTER
)
self
.
window
.
set_border_width
(
10
)
self
.
title
=
"Please"
self
.
window
.
set_title
(
"Please"
)
self
.
mainbox
=
Gtk
.
VBox
(
spacing
=
6
)
self
.
window
.
add
(
self
.
mainbox
)
self
.
label
=
Gtk
.
Label
(
"Notice me, senpai"
,
xalign
=
0
)
self
.
mainbox
.
pack_start
(
self
.
label
,
True
,
True
,
0
)
self
.
label
.
show
()
button_box
=
Gtk
.
HBox
()
self
.
mainbox
.
pack_start
(
button_box
,
True
,
True
,
0
)
button_box
.
show
()
b
=
Gtk
.
Button
(
"I noticed you"
)
button_box
.
pack_start
(
b
,
True
,
True
,
0
)
b
.
show
()
b
.
connect
(
"clicked"
,
self
.
destroy
)
self
.
mainbox
.
show
()
self
.
window
.
show_all
()
def
destroy
(
self
,
notused
):
self
.
window
.
destroy
()
def
main
():
# Calling GObject.threads_init() is not needed for PyGObject 3.10.2+
GObject
.
threads_init
()
# Please
NoticeMeSenpai
()
# Gtk main - call after first update
signal
.
signal
(
signal
.
SIGINT
,
signal
.
SIG_DFL
)
Gtk
.
main
()
if
__name__
==
"__main__"
:
main
()
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