init
This commit is contained in:
parent
4a0afa6a5f
commit
5beaa74ea0
15 changed files with 1467 additions and 0 deletions
4
WKNcharts/TODO
Normal file
4
WKNcharts/TODO
Normal file
|
@ -0,0 +1,4 @@
|
|||
[.] eingelesenen srcfile Namen, aus dem Textfeld wieder auslesen
|
||||
* mehrere intervalle holen (30, 300, 10000, 30000)
|
||||
* dateinamen besser vergeben
|
||||
* datum einbringen
|
25
WKNcharts/WknCharts.py
Executable file
25
WKNcharts/WknCharts.py
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env python
|
||||
__version__="0.3"
|
||||
__author__="AGE"
|
||||
__date__="02006-06-07"
|
||||
|
||||
|
||||
class WknCharts:
|
||||
import sys
|
||||
def __init__(self):
|
||||
try:
|
||||
import pygtk
|
||||
pygtk.require("2.0")
|
||||
import gtk
|
||||
from gtk import glade
|
||||
except:
|
||||
print "dumme fehlermeldung"
|
||||
sys.exit(1)
|
||||
|
||||
import wknGUI
|
||||
wg = wknGUI.WknGUI(gtk)
|
||||
gtk.main()
|
||||
|
||||
if __name__ == "__main__":
|
||||
wc = WknCharts()
|
||||
|
46
WKNcharts/filechooser.py
Normal file
46
WKNcharts/filechooser.py
Normal file
|
@ -0,0 +1,46 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
class FileChooserDialog:
|
||||
'does what it sounds like ;)'
|
||||
def __init__(self):
|
||||
return
|
||||
|
||||
def getfilename(self):
|
||||
'returns name of the choosen file or empty string'
|
||||
import gtk
|
||||
# der Filedialog ist erst ab pygtk2.4 drin
|
||||
if gtk.pygtk_version < (2,3,90):
|
||||
print "Du brauchst mindestens PyGtk 2.3.90"
|
||||
raise SystemExit
|
||||
|
||||
dialog = gtk.FileChooserDialog("Datei oeffnen..",
|
||||
None,
|
||||
gtk.FILE_CHOOSER_ACTION_OPEN,
|
||||
(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
|
||||
gtk.STOCK_OPEN, gtk.RESPONSE_OK))
|
||||
dialog.set_default_response(gtk.RESPONSE_OK)
|
||||
|
||||
filter = gtk.FileFilter()
|
||||
filter.set_name("Alle Dateien")
|
||||
filter.add_pattern("*")
|
||||
dialog.add_filter(filter)
|
||||
|
||||
filter = gtk.FileFilter()
|
||||
filter.set_name("Text")
|
||||
filter.add_mime_type("text/txt")
|
||||
filter.add_mime_type("text/asc")
|
||||
filter.add_pattern("*.txt")
|
||||
filter.add_pattern("*.asc")
|
||||
dialog.add_filter(filter)
|
||||
|
||||
response = dialog.run()
|
||||
if response == gtk.RESPONSE_OK:
|
||||
filename = dialog.get_filename()
|
||||
#print "hier haste den Dateinamen: ", filename
|
||||
elif response == gtk.RESPONSE_CANCEL:
|
||||
#print "die feige sau bricht einfach ab.."
|
||||
filename = ""
|
||||
dialog.destroy()
|
||||
|
||||
return filename
|
||||
|
BIN
WKNcharts/filechooser.pyc
Normal file
BIN
WKNcharts/filechooser.pyc
Normal file
Binary file not shown.
65
WKNcharts/getWKNcharts.py
Executable file
65
WKNcharts/getWKNcharts.py
Executable file
|
@ -0,0 +1,65 @@
|
|||
#!/usr/bin/env python
|
||||
__version__ = "0.2b"
|
||||
__author__ = "age"
|
||||
__date__ = "02006-04-25"
|
||||
|
||||
import urllib
|
||||
from optparse import OptionParser
|
||||
|
||||
class WKNCharts:
|
||||
'''fetches images from stocks'''
|
||||
def __init__(self):
|
||||
self.wkn_dict = {}
|
||||
|
||||
def readwkndictfromfile(self, filename):
|
||||
'''reads lines like "wkn name\n" from a file and fills a dictionary'''
|
||||
wknfile = open(filename,"r")
|
||||
for line in wknfile:
|
||||
'remove CRLF and split the line in two parts on spacer'
|
||||
tmp = line.strip("\n").split(" ")
|
||||
if tmp[0] and tmp[1]: self.wkn_dict[tmp[0]] = tmp[1]
|
||||
wknfile.close()
|
||||
|
||||
def getchart(self, wkn):
|
||||
'''fetches the images via http'''
|
||||
host = "http://gfx.finanztreff.de/charts/cc_gatrixx.gfx?"
|
||||
params = urllib.urlencode({
|
||||
'string':wkn,
|
||||
'b':400,
|
||||
'h':240,
|
||||
'out':"png",
|
||||
'zeit':300,
|
||||
'typ':0,
|
||||
'boerse':1,
|
||||
'land':276,
|
||||
'seite':"kurse",
|
||||
'herkunft':123
|
||||
})
|
||||
print "ich hole jetzt \"%s\":" % self.wkn_dict[wkn]
|
||||
print host + params
|
||||
try:
|
||||
f = urllib.urlopen(host + params)
|
||||
png = open(self.wkn_dict[wkn]+".png", "w")
|
||||
png.write(f.read())
|
||||
png.close()
|
||||
except IOError, e:
|
||||
print e
|
||||
|
||||
def getallcharts(self):
|
||||
for wkn in self.wkn_dict.keys():
|
||||
self.getchart(wkn)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = OptionParser()
|
||||
parser.add_option("-f", "--file", dest="filename",
|
||||
help="read WKNS from FILE", metavar="FILE")
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
wkn = WKNCharts()
|
||||
wkn.readwkndictfromfile(options.filename)
|
||||
#for i in wkn.wkn_dict.keys():
|
||||
#print "%s \t %s" % (i, wkn.wkn_dict[i])
|
||||
wkn.getallcharts()
|
||||
#wkn.addwkn(wkn, name)
|
||||
#wkn.delwkn(wkn)
|
43
WKNcharts/wknGUI.py
Normal file
43
WKNcharts/wknGUI.py
Normal file
|
@ -0,0 +1,43 @@
|
|||
#/usr/bin/env python
|
||||
__version__="0.3"
|
||||
__author__="AGE"
|
||||
__date__="02006-06-07"
|
||||
|
||||
class WknGUI:
|
||||
"""
|
||||
This is a GTK-Frontend for getWKNcharts.py
|
||||
"""
|
||||
import sys
|
||||
|
||||
def __init__(self, gtk):
|
||||
self.gladefile = "wkncharts.glade"
|
||||
self.gtk = gtk
|
||||
self.gladefile = "wkncharts.glade"
|
||||
self.wkngui = self.gtk.glade.XML(self.gladefile)
|
||||
actions = { "on_read_srcfile_clicked": self.clicked_read_srcfile,
|
||||
"on_choose_srcfile_clicked": self.clicked_choose_srcfile,
|
||||
"on_window1_destroy": self.exit
|
||||
}
|
||||
self.wkngui.signal_autoconnect (actions)
|
||||
|
||||
def clicked_read_srcfile(self, widget):
|
||||
file = self.wkngui.get_widget("tf_srcfile").get_text()
|
||||
|
||||
|
||||
def clicked_choose_srcfile(self, widget):
|
||||
import filechooser
|
||||
fcd = filechooser.FileChooserDialog()
|
||||
filename = fcd.getfilename()
|
||||
if filename:
|
||||
self.outputfield = self.wkngui.get_widget("tf_srcfile")
|
||||
self.textbuffer = self.outputfield.get_buffer()
|
||||
self.textbuffer.set_text(filename)
|
||||
else:
|
||||
self.outputfield = self.wkngui.get_widget("tf_srcfile")
|
||||
self.textbuffer = self.outputfield.get_buffer()
|
||||
self.textbuffer.set_text("keine Datei ausgewaehlt")
|
||||
|
||||
def exit(self, widget):
|
||||
print "ciao ciao"
|
||||
self.sys.exit(1)
|
||||
|
BIN
WKNcharts/wknGUI.pyc
Normal file
BIN
WKNcharts/wknGUI.pyc
Normal file
Binary file not shown.
496
WKNcharts/wkncharts.glade
Normal file
496
WKNcharts/wkncharts.glade
Normal file
|
@ -0,0 +1,496 @@
|
|||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||
|
||||
<glade-interface>
|
||||
|
||||
<widget class="GtkWindow" id="window1">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">window1</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
<property name="modal">False</property>
|
||||
<property name="resizable">True</property>
|
||||
<property name="destroy_with_parent">False</property>
|
||||
<property name="decorated">True</property>
|
||||
<property name="skip_taskbar_hint">False</property>
|
||||
<property name="skip_pager_hint">False</property>
|
||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
||||
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||
<signal name="destroy" handler="on_window1_destroy" last_modification_time="Tue, 06 Jun 2006 23:45:16 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="show_tabs">True</property>
|
||||
<property name="show_border">True</property>
|
||||
<property name="tab_pos">GTK_POS_TOP</property>
|
||||
<property name="scrollable">False</property>
|
||||
<property name="enable_popup">False</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label7">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Wertpapierkennnummer</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label8">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Aktien/Fond Name</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkEntry" id="entry2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="visibility">True</property>
|
||||
<property name="max_length">0</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
<property name="has_frame">True</property>
|
||||
<property name="invisible_char">*</property>
|
||||
<property name="activates_default">False</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkEntry" id="entry3">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="visibility">True</property>
|
||||
<property name="max_length">0</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
<property name="has_frame">True</property>
|
||||
<property name="invisible_char">*</property>
|
||||
<property name="activates_default">False</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Hinzufügen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button5">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Löschen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Download</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Bilder</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label6">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Quelldatei</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_NEVER</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTextView" id="tf_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="extension_events">GDK_EXTENSION_EVENTS_ALL</property>
|
||||
<property name="editable">False</property>
|
||||
<property name="overwrite">False</property>
|
||||
<property name="accepts_tab">True</property>
|
||||
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap_mode">GTK_WRAP_NONE</property>
|
||||
<property name="cursor_visible">False</property>
|
||||
<property name="pixels_above_lines">0</property>
|
||||
<property name="pixels_below_lines">0</property>
|
||||
<property name="pixels_inside_wrap">0</property>
|
||||
<property name="left_margin">0</property>
|
||||
<property name="right_margin">0</property>
|
||||
<property name="indent">0</property>
|
||||
<property name="text" translatable="yes">Dateiname</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="read_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Quelldatei einlesen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_read_srcfile_clicked" last_modification_time="Tue, 06 Jun 2006 23:44:49 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="choose_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Quelldatei auswählen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_choose_srcfile_clicked" last_modification_time="Wed, 07 Jun 2006 00:19:46 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label3">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Einstellungen</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label5">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">label5</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHSeparator" id="hseparator1">
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTextView" id="textview1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="overwrite">False</property>
|
||||
<property name="accepts_tab">True</property>
|
||||
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap_mode">GTK_WRAP_NONE</property>
|
||||
<property name="cursor_visible">True</property>
|
||||
<property name="pixels_above_lines">0</property>
|
||||
<property name="pixels_below_lines">0</property>
|
||||
<property name="pixels_inside_wrap">0</property>
|
||||
<property name="left_margin">0</property>
|
||||
<property name="right_margin">0</property>
|
||||
<property name="indent">0</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label4">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Logbuch</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
</glade-interface>
|
497
WKNcharts/wkncharts.glade.bak
Normal file
497
WKNcharts/wkncharts.glade.bak
Normal file
|
@ -0,0 +1,497 @@
|
|||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
||||
|
||||
<glade-interface>
|
||||
|
||||
<widget class="GtkWindow" id="window1">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">window1</property>
|
||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
||||
<property name="modal">False</property>
|
||||
<property name="resizable">True</property>
|
||||
<property name="destroy_with_parent">False</property>
|
||||
<property name="decorated">True</property>
|
||||
<property name="skip_taskbar_hint">False</property>
|
||||
<property name="skip_pager_hint">False</property>
|
||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
||||
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
||||
<signal name="destroy" handler="on_window1_destroy" last_modification_time="Tue, 06 Jun 2006 23:45:16 GMT"/>
|
||||
|
||||
<child>
|
||||
<widget class="GtkNotebook" id="notebook1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="show_tabs">True</property>
|
||||
<property name="show_border">True</property>
|
||||
<property name="tab_pos">GTK_POS_TOP</property>
|
||||
<property name="scrollable">False</property>
|
||||
<property name="enable_popup">False</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label7">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Wertpapierkennnummer</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label8">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Aktien/Fond Name</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkEntry" id="entry2">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="visibility">True</property>
|
||||
<property name="max_length">0</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
<property name="has_frame">True</property>
|
||||
<property name="invisible_char">*</property>
|
||||
<property name="activates_default">False</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkEntry" id="entry3">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="visibility">True</property>
|
||||
<property name="max_length">0</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
<property name="has_frame">True</property>
|
||||
<property name="invisible_char">*</property>
|
||||
<property name="activates_default">False</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button4">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Hinzufügen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button5">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Löschen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label1">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Download</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox2">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label2">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Bilder</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox3">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHBox" id="hbox1">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label6">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Quelldatei</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="tf_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_NEVER</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_NEVER</property>
|
||||
<property name="shadow_type">GTK_SHADOW_IN</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTextView" id="tf_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="extension_events">GDK_EXTENSION_EVENTS_ALL</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="overwrite">False</property>
|
||||
<property name="accepts_tab">False</property>
|
||||
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap_mode">GTK_WRAP_NONE</property>
|
||||
<property name="cursor_visible">True</property>
|
||||
<property name="pixels_above_lines">0</property>
|
||||
<property name="pixels_below_lines">0</property>
|
||||
<property name="pixels_inside_wrap">0</property>
|
||||
<property name="left_margin">0</property>
|
||||
<property name="right_margin">0</property>
|
||||
<property name="indent">0</property>
|
||||
<property name="text" translatable="yes">Dateiname</property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="read_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Quelldatei einlesen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_read_srcfile_clicked" last_modification_time="Tue, 06 Jun 2006 23:44:49 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="pack_type">GTK_PACK_END</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="choose_srcfile">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Quelldatei auswählen</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
<signal name="clicked" handler="on_choose_srcfile_clicked" last_modification_time="Wed, 07 Jun 2006 00:19:46 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label3">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Einstellungen</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkVBox" id="vbox4">
|
||||
<property name="visible">True</property>
|
||||
<property name="homogeneous">False</property>
|
||||
<property name="spacing">0</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label5">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">label5</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">False</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkHSeparator" id="hseparator1">
|
||||
<property name="visible">True</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkScrolledWindow" id="scrolledwindow1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="vscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
||||
|
||||
<child>
|
||||
<widget class="GtkTextView" id="textview1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="editable">True</property>
|
||||
<property name="overwrite">False</property>
|
||||
<property name="accepts_tab">True</property>
|
||||
<property name="justification">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap_mode">GTK_WRAP_NONE</property>
|
||||
<property name="cursor_visible">True</property>
|
||||
<property name="pixels_above_lines">0</property>
|
||||
<property name="pixels_below_lines">0</property>
|
||||
<property name="pixels_inside_wrap">0</property>
|
||||
<property name="left_margin">0</property>
|
||||
<property name="right_margin">0</property>
|
||||
<property name="indent">0</property>
|
||||
<property name="text" translatable="yes"></property>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="tab_expand">False</property>
|
||||
<property name="tab_fill">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkLabel" id="label4">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">Logbuch</property>
|
||||
<property name="use_underline">False</property>
|
||||
<property name="use_markup">False</property>
|
||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
||||
<property name="wrap">False</property>
|
||||
<property name="selectable">False</property>
|
||||
<property name="xalign">0.5</property>
|
||||
<property name="yalign">0.5</property>
|
||||
<property name="xpad">0</property>
|
||||
<property name="ypad">0</property>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="type">tab</property>
|
||||
</packing>
|
||||
</child>
|
||||
</widget>
|
||||
</child>
|
||||
</widget>
|
||||
|
||||
</glade-interface>
|
11
WKNcharts/wkncharts.gladep
Normal file
11
WKNcharts/wkncharts.gladep
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
|
||||
|
||||
<glade-project>
|
||||
<name>WKNcharts</name>
|
||||
<program_name>wkncharts</program_name>
|
||||
<gnome_support>FALSE</gnome_support>
|
||||
<output_main_file>FALSE</output_main_file>
|
||||
<output_support_files>FALSE</output_support_files>
|
||||
<output_build_files>FALSE</output_build_files>
|
||||
</glade-project>
|
11
WKNcharts/wkncharts.gladep.bak
Normal file
11
WKNcharts/wkncharts.gladep.bak
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
||||
<!DOCTYPE glade-project SYSTEM "http://glade.gnome.org/glade-project-2.0.dtd">
|
||||
|
||||
<glade-project>
|
||||
<name>WKNcharts</name>
|
||||
<program_name>wkncharts</program_name>
|
||||
<gnome_support>FALSE</gnome_support>
|
||||
<output_main_file>FALSE</output_main_file>
|
||||
<output_support_files>FALSE</output_support_files>
|
||||
<output_build_files>FALSE</output_build_files>
|
||||
</glade-project>
|
2
WKNcharts/wkns.txt
Normal file
2
WKNcharts/wkns.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
881823 samsung
|
||||
|
11
WKNcharts/wkns.txt.orig
Normal file
11
WKNcharts/wkns.txt.orig
Normal file
|
@ -0,0 +1,11 @@
|
|||
881823 samsung
|
||||
980705 grund-global
|
||||
870737 nokia
|
||||
847652 dws-vermoegen
|
||||
847414 dws-technologie
|
||||
DE000A0AB0K1 allegro-inv
|
||||
DE0005152623 deka-technologie
|
||||
LU0048578792 fidelity
|
||||
DE0009802306 seb-immoinvest
|
||||
DE0009848002 dws-internet
|
||||
|
142
gallery.py
Executable file
142
gallery.py
Executable file
|
@ -0,0 +1,142 @@
|
|||
#!/usr/bin/env python
|
||||
# see: http://www.amk.ca/python/code/
|
||||
|
||||
import sys, os, getopt
|
||||
try:
|
||||
from PIL import Image
|
||||
except ImportError:
|
||||
print >>sys.stderr, ("Unable to import PIL.Image; "
|
||||
"is the Python Imaging Library installed?")
|
||||
sys.exit(0)
|
||||
|
||||
__version__ = '1.01'
|
||||
__doc__ = """%s [option] file1 file2
|
||||
Options:
|
||||
--help Display this usage message
|
||||
--html Output HTML to stdout
|
||||
--resize x y Resize specified images to x,y
|
||||
--rotate x Rotate the image counter clockwise for x degrees
|
||||
--size Display the image sizes
|
||||
--thumbnail x y Make thumbnails of specified images, ignoring existing
|
||||
thumbnails that happen to be listed among the files.
|
||||
|
||||
If a filename is of the form *_thumb.*, it's assumed to be a thumbnail.
|
||||
|
||||
""" % sys.argv[0]
|
||||
|
||||
def is_thumbnail (filename):
|
||||
"Returns true if the filename is for a thumbnail"
|
||||
root, ext = os.path.splitext(filename)
|
||||
return root.endswith('_thumb')
|
||||
|
||||
def thumbnail_name (filename):
|
||||
"""Return the thumbnail form of a filename,
|
||||
converting foo.jpg to foo_thumb.jpg.
|
||||
"""
|
||||
assert not is_thumbnail(filename)
|
||||
root, ext = os.path.splitext(filename)
|
||||
return root + '_thumb' + ext
|
||||
|
||||
def output_html (args):
|
||||
for filename in args:
|
||||
if is_thumbnail(filename): continue
|
||||
thumbnail = thumbnail_name(filename)
|
||||
|
||||
if not os.path.exists(thumbnail):
|
||||
print >>sys.stderr, ("%s: thumbnail %s doesn't exist" %
|
||||
(sys.argv[0], thumbnail) )
|
||||
|
||||
im = Image.open(thumbnail)
|
||||
width, height = im.size
|
||||
|
||||
print ('<p><a href="%s"><img src="%s" width="%i" height="%i" '
|
||||
'alt="XXX" align="XXX"></a>'
|
||||
'\n\nXXX\n'
|
||||
'<br clear=all><hr>\n\n'
|
||||
% (filename, thumbnail, width, height) )
|
||||
|
||||
def make_thumbnails (args):
|
||||
x, y = int(args[0]), int(args[1])
|
||||
args = args[2:] ; args.sort()
|
||||
|
||||
for filename in args:
|
||||
if is_thumbnail(filename): continue
|
||||
thumbnail = thumbnail_name(filename)
|
||||
|
||||
print >>sys.stderr, filename
|
||||
im = Image.open(filename)
|
||||
im.thumbnail((x,y))
|
||||
im.save(thumbnail)
|
||||
|
||||
def rotate_images (args):
|
||||
x = int(args[0])
|
||||
args = args[1:] ; args.sort()
|
||||
for filename in args:
|
||||
im = Image.open(filename)
|
||||
im2 = im.rotate(x)
|
||||
im2.save(filename)
|
||||
print "rotated %s %i degrees" % (filename, x)
|
||||
|
||||
def resize_images (args):
|
||||
x, y = int(args[0]), int(args[1])
|
||||
args = args[2:] ; args.sort()
|
||||
for filename in args:
|
||||
im = Image.open(filename)
|
||||
w,h = im.size
|
||||
im2 = im.resize((x,y))
|
||||
print >>sys.stderr, ('%s: was %i,%i; resizing to %i,%i'
|
||||
% (filename, w,h, x,y) )
|
||||
im2.save(filename)
|
||||
|
||||
|
||||
def main ():
|
||||
opts, args = getopt.getopt(sys.argv[1:],
|
||||
'h',
|
||||
['help',
|
||||
'html',
|
||||
'resize',
|
||||
'size',
|
||||
'thumbnail',
|
||||
'rotate'])
|
||||
|
||||
# Remove the unused option arguments
|
||||
opts = [opt for opt,arg in opts]
|
||||
|
||||
# Print usage message if requested
|
||||
if '-h' in opts or '--help' in opts:
|
||||
print >>sys.stderr, __doc__
|
||||
sys.exit(0)
|
||||
|
||||
# Ensure that exactly one option is supplied
|
||||
if len(opts) == 0:
|
||||
print >> sys.stderr, ("%s: must specify one of --size, --help"
|
||||
"\n --html, --resize, --thumbnail --rotate" %
|
||||
sys.argv[0] )
|
||||
sys.exit(0)
|
||||
elif len(opts) > 1:
|
||||
print >> sys.stderr, ("%s: cannot specify multiple options" %
|
||||
sys.argv[0] )
|
||||
sys.exit(0)
|
||||
|
||||
# Perform each of the possible actions
|
||||
opt = opts[0]
|
||||
if opt == '--html':
|
||||
output_html(args)
|
||||
elif opt == '--resize':
|
||||
resize_images(args)
|
||||
elif opt == '--rotate':
|
||||
rotate_images(args)
|
||||
elif opt == '--size':
|
||||
for filename in args:
|
||||
image = Image.open(filename)
|
||||
x, y = image.size
|
||||
print filename, ':', x,y
|
||||
elif opt == '--thumbnail':
|
||||
make_thumbnails(args)
|
||||
|
||||
else:
|
||||
print >>sys.stderr, ("%s: unknown option" % sys.argv[0])
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
114
normalizer.py
Executable file
114
normalizer.py
Executable file
|
@ -0,0 +1,114 @@
|
|||
#!/usr/bin/env python
|
||||
## this is a dirty, lame hack by a dirty, lame guy
|
||||
## - reads a .m3u file (e.g. generated by xmms)
|
||||
## - converts any audiofile to wavefiles using incredible mplayer
|
||||
## - provides normalized wavefiles using transcode
|
||||
## - burns an audio-cd
|
||||
# !!feel free to copy, modify, redistribute and at most _use_ it!!
|
||||
# AGE/02004
|
||||
|
||||
import os,sys
|
||||
import string
|
||||
|
||||
#recorder = "ATAPI:0,0,0" #fuer cdrecord mit 2.6 kernel und ide brenner
|
||||
recorder = "0,0,0" #fuer cdrecord mit 2.6 kernel und ide brenner
|
||||
|
||||
__doc__ = """usage: %s file.m3u wav-destination""" % sys.argv[0]
|
||||
|
||||
################
|
||||
### init checks
|
||||
try:
|
||||
m3ufile = sys.argv[1]
|
||||
wavdir = sys.argv[2]
|
||||
if not os.access(wavdir,os.W_OK) :
|
||||
print "%s not writeable" % wavdir
|
||||
sys.exit(3)
|
||||
except:
|
||||
print >>sys.stderr, __doc__
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
print "\nDirty, lame hack in action:\n"
|
||||
################
|
||||
### m3u einlesen
|
||||
try:
|
||||
temp = open(m3ufile,"r")
|
||||
m3u = temp.read()
|
||||
temp.close()
|
||||
except:
|
||||
print "I can't find the .m3u file"
|
||||
sys.exit(2)
|
||||
# M's Kommentar Schnibbler
|
||||
notfound = 0
|
||||
while notfound == 0:
|
||||
startpos = string.find(m3u,"#")
|
||||
if startpos <0:
|
||||
notfound +=1
|
||||
endpos = string.find(m3u,"\n",startpos)
|
||||
cutme = m3u[startpos:endpos]
|
||||
m3u = string.replace(m3u,cutme,"")
|
||||
|
||||
valuepairs = string.split(m3u,"\n")
|
||||
m3u = []
|
||||
for i in valuepairs:
|
||||
if i != "":
|
||||
m3u.append(i)
|
||||
# im m3u-array stehen jetzt hoffentlich ;) nur noch pfadangaben
|
||||
# checken ob's stimmt & und ob alle files existieren
|
||||
abort = 0
|
||||
for i in m3u:
|
||||
if not os.path.exists(i):
|
||||
abort = abort + 1
|
||||
print "===> not found: %s " % i
|
||||
m3u.remove(i)
|
||||
if abort > 0:
|
||||
print "\nI can't find %i audiofiles - giving up" % abort
|
||||
#TODO
|
||||
# abfrage ob ohne die files mit gekuertzter m3u weiter gemacht werden
|
||||
# soll..
|
||||
sys.exit(0)
|
||||
else:
|
||||
print "\nI found %i audiofiles to convert, normalize and burn:" % len(m3u)
|
||||
|
||||
|
||||
##############
|
||||
### ogg/mp3 -> wav
|
||||
count = 0
|
||||
for file in m3u:
|
||||
count+=1
|
||||
# fuehrende nullen ranballern
|
||||
#if count < 10:
|
||||
#count0 = "0"+str(count)
|
||||
#else:
|
||||
#count0 = str(count)
|
||||
count0 = "%.3i" % count
|
||||
command = "mplayer \""+file+"\" -vc dummy -vo null -ao pcm -aofile "+wavdir+"/"+str(count0)+".wav &> /dev/null"
|
||||
print "\nexec: "+command
|
||||
session = os.popen(command,"w")
|
||||
session.write("")
|
||||
session.flush()
|
||||
session.close()
|
||||
|
||||
#########################
|
||||
### wav -> normalized wav
|
||||
wavefiles = os.listdir(wavdir)
|
||||
for wave in wavefiles:
|
||||
command = "transcode -J normalize -y wav -i "+wavdir+"/"+wave+" -m "+wavdir+"/"+ wave+".norm &> /dev/null"
|
||||
print "\nexec: "+command
|
||||
session = os.popen(command,"w")
|
||||
session.write("")
|
||||
session.flush()
|
||||
session.close()
|
||||
|
||||
##################
|
||||
### wav -> audiocd
|
||||
command = "sudo cdrecord -v -dev="+recorder+" -pad -audio "+wavdir+"/*.wav.norm"
|
||||
print "\nexec: "+command
|
||||
print "\nwarning: If this fails, try to change the \"recorder\" variable!"
|
||||
session = os.popen(command,"w")
|
||||
session.write("")
|
||||
session.flush()
|
||||
session.close()
|
||||
|
||||
#print "\n That's it! Eine Stunde coden und dafuer jetzt den Sommer geniessen..."
|
||||
print "done"
|
Loading…
Reference in a new issue