Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:shrewdlove:gputempcheck
Tempcheck
GPU+Temp+Check.py
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File GPU+Temp+Check.py of Package Tempcheck
#!/usr/bin/env python import pygtk pygtk.require('2.0') import gobject import random import os import gtk import os #EndImports class iscApp1: iscVcheckGPUtemp = "aticonfig --odgt --adapter=all" iscVTemp = "Scanning" iscWindow4Window1 = gtk.Window(gtk.WINDOW_TOPLEVEL) iscWindow4Window1Fixed = gtk.Fixed() iscWindow4Label2 =gtk.Label("Your GPU is:") iscWindow4temptxt9 =gtk.Label("Press Check Temperature") iscWindow4check10 = gtk.Button("Check Temperature") #EndOfGlobalVariables def main(self): gtk.main() def destroy(self, widget, data=None): gtk.main_quit() #EndOfClass def iscAppQuit2(): thisiscApp1.destroy(None,None) #iscAppQuit2Done def iscSetLabel26(): thisiscApp1.iscWindow4temptxt9.set_label(thisiscApp1.iscVTemp) #iscSetLabel26Done def iscSystemScript22(): # Example # Remember that leading spaces are key in Python... print thisiscApp1.iscVcheckGPUtemp thisiscApp1.iscVTemp=os.popen( thisiscApp1.iscVcheckGPUtemp ).read() # print thisiscApp1.iscVTemp # The line below is the code that tells Illumination where Output 1 is called iscSetLabel26() #iscSystemScript22Done def iscWindow4(): thisiscApp1.iscWindow4Label2 =gtk.Label("Your GPU is:") thisiscApp1.iscWindow4temptxt9 =gtk.Label("Press Check Temperature") thisiscApp1.iscWindow4check10 = gtk.Button("Check Temperature") thisiscApp1.iscWindow4Window1 = gtk.Window(gtk.WINDOW_TOPLEVEL) thisiscApp1.iscWindow4Window1Fixed = gtk.Fixed() thisiscApp1.iscWindow4Window1.set_title("Josh's GPU Temp Check") thisiscApp1.iscWindow4Window1.set_default_size(310, 152) thisiscApp1.iscWindow4Window1.add(thisiscApp1.iscWindow4Window1Fixed) thisiscApp1.iscWindow4Window1Fixed.width = 310 thisiscApp1.iscWindow4Window1Fixed.height = 152 thisiscApp1.iscWindow4Window1.connect("delete_event", iscWindow4Closed) thisiscApp1.iscWindow4Window1Fixed.show() thisiscApp1.iscWindow4Window1Fixed.put(thisiscApp1.iscWindow4Label2, 117, 56) thisiscApp1.iscWindow4Label2.set_size_request(82, 13) thisiscApp1.iscWindow4Label2.show() thisiscApp1.iscWindow4Window1Fixed.put(thisiscApp1.iscWindow4temptxt9, 11, 81) thisiscApp1.iscWindow4temptxt9.set_size_request(288, 61) thisiscApp1.iscWindow4temptxt9.show() thisiscApp1.iscWindow4Window1Fixed.put(thisiscApp1.iscWindow4check10, 82, 7) thisiscApp1.iscWindow4check10.set_size_request(153, 41) thisiscApp1.iscWindow4check10.connect("clicked", iscWindow4checkClicked) thisiscApp1.iscWindow4check10.show() thisiscApp1.iscWindow4Window1.show() #iscWindow4Opened #iscWindow4Done def iscWindow4Closed(self, other): pass iscAppQuit2() #iscWindow4Closed def iscWindow4checkClicked(self): pass iscSystemScript22() #iscWindow4checkClicked #EndOfFunctions thisiscApp1 = iscApp1() iscWindow4() #iscApp1Launched #EndOfStatements thisiscApp1.main()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor