New ScreenPanel
This commit is contained in:
48
script/cpython6.py
Executable file
48
script/cpython6.py
Executable file
@@ -0,0 +1,48 @@
|
||||
|
||||
|
||||
from Tkinter import *
|
||||
|
||||
|
||||
root = Tk()
|
||||
li = 'Carl Patrick Lindsay Helmut Chris Gwen'.split()
|
||||
listb = Listbox(root) # Create a listbox widget
|
||||
for item in li: # Insert each item within li into the listbox
|
||||
listb.insert(0,item)
|
||||
|
||||
listb.pack() # Pack listbox widget
|
||||
root.mainloop()
|
||||
|
||||
|
||||
#import Tkinter
|
||||
|
||||
|
||||
#import matplotlib
|
||||
#matplotlib.use('TkAgg')
|
||||
|
||||
#print matplotlib.get_backend()
|
||||
"""
|
||||
[u'pgf', u'cairo', u'MacOSX', u'CocoaAgg', u'gdk', u'ps', u'GTKAgg', u'nbAgg', u'GTK', u'Qt5Agg', u'template', u'emf', u'GTK3Cairo', u'GTK3Agg', u'WX', u'Qt4Agg', u'TkAgg', u'agg', u'svg', u'GTKCairo', u'WXAgg', u'WebAgg', u'pdf'] in jeptest4.py at line number 15
|
||||
"""
|
||||
#print matplotlib.get_backend()
|
||||
#plt.ion()
|
||||
|
||||
|
||||
|
||||
#import threading
|
||||
|
||||
#from cpython.pythread cimport PyThread_init_thread
|
||||
#PyThread_init_thread()
|
||||
#threading.current_thread.__init__()
|
||||
|
||||
#import pandas as pd
|
||||
|
||||
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
x = np.arange(0, 5, 0.1)
|
||||
y = np.sin(x)
|
||||
plt.plot(x, y)
|
||||
plt.show()
|
||||
|
||||
#print threading.current_thread().name
|
||||
Reference in New Issue
Block a user