frecel / screenrotator Goto Github PK
View Code? Open in Web Editor NEWSmall applet for rotating the screen on Unity Desktop
Small applet for rotating the screen on Unity Desktop
How can I debug this?
Using an intel graphics card, Ubuntu 16:
./ScreenRotator.py:6: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
./ScreenRotator.py:7: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
from gi.repository import AppIndicator3 as AppIndicator
Traceback (most recent call last):
File "./ScreenRotator.py", line 51, in rotate_screen
call(["xrandr", "-o", direction])
UnboundLocalError: local variable 'direction' referenced before assignment
I've installed the packages, then I did
tamara@tamara-Inspiron-3593:~$ git clone https://github.com/frecel/ScreenRotatorCloning into 'ScreenRotator'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 76 (delta 1), reused 3 (delta 1), pack-reused 69
Unpacking objects: 100% (76/76), done.
tamara@tamara-Inspiron-3593:~$ cd ScreenRotator
tamara@tamara-Inspiron-3593:~/ScreenRotator$ ./ScreenRotator.py
Traceback (most recent call last):
File "./ScreenRotator.py", line 21, in <module>
gi.require_version('AppIndicator3', '0.1')
File "/usr/lib/python3/dist-packages/gi/__init__.py", line 130, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available
tamara@tamara-Inspiron-3593:~/ScreenRotator$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.