1. Yannick Gingras
  2. talkticks

Commits

Yannick Gingras  committed 6361fce

repackaged

  • Participants
  • Parent commits 35ded2e
  • Branches default

Comments (0)

Files changed (8)

File .hgignore

View file
 syntax: glob
 timeticks/ui_*.py
+talkticks/ui_talktickswin.py

File Makefile

View file
-timeticks/ui_timetickswin.py: ui/ui_timepanalwin.ui
-	pyuic4 -o timeticks/ui_timetickswin.py ui/ui_timepanalwin.ui
+talkticks/ui_talktickswin.py: ui/ui_talktickswin.ui
+	pyuic4 -o talkticks/ui_talktickswin.py ui/ui_talktickswin.ui
 
 clean:
 	cd timeticks && rm -f ui_*.py *.pyc *.pyo

File setup.py

View file
+# -*- coding: utf-8 -*-                                                   
+try:                                                                      
+    from setuptools import setup, find_packages                           
+except ImportError:                                                       
+    from ez_setup import use_setuptools                                   
+    use_setuptools()                                                      
+    from setuptools import setup, find_packages                           
+
+setup(
+    name='talkticks',
+    version='0.5',    
+    description='A visual timer to help speakers finish on time',   
+    author='Yannick Gingras',        
+    author_email='ygingras@ygingras.net',  
+    #url='',          
+    install_requires=["argparse >= 1.0.1"],                                                    
+    packages=find_packages(exclude=['ez_setup']),                          
+    include_package_data=True,                                             
+    test_suite='nose.collector',                                           
+    entry_points="""
+    [console_scripts]
+    talkticks = talkticks.talkticks:main
+    """,
+)

File talkticks/__init__.py

Empty file added.

File talkticks/talkticks.py

View file
 from argparse import ArgumentParser
 
 from PyQt4 import QtGui
-from timepanalwin import TimepanalWin
+from talktickswin import TalkticksWin
 
 def parse_args():
     parser = ArgumentParser(description=__doc__)
 def main():
     args = parse_args()
     app = QtGui.QApplication(sys.argv)
-    win = TimepanalWin(args)
+    win = TalkticksWin(args)
     win.setWindowTitle(args.title)
     win.show()
     sys.exit(app.exec_())

File talkticks/talktickswin.py

View file
 from pprint import pprint
 
 from PyQt4 import QtGui, QtCore
-from ui_timepanalwin import Ui_TimepanalWin
+from ui_talktickswin import Ui_TalkticksWin
 
 REFRESH_DELAY = 250
 
                     d=1500, 
                     e=1800, 
                     f=2700, 
-                    g=3600)
+                    g=3600, 
+                    h=900)
 
-class TimepanalWin(QtGui.QDialog, Ui_TimepanalWin):
+class TalkticksWin(QtGui.QDialog, Ui_TalkticksWin):
     def __init__(self, options):
         QtGui.QDialog.__init__(self)
         self.setupUi(self)

File ui/ui_talktickswin.ui

View file
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>TalkticksWin</class>
+ <widget class="QDialog" name="TalkticksWin">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>828</width>
+    <height>318</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Time Left</string>
+  </property>
+  <layout class="QVBoxLayout">
+   <property name="sizeConstraint">
+    <enum>QLayout::SetNoConstraint</enum>
+   </property>
+   <item>
+    <widget class="QLabel" name="time_left_lbl">
+     <property name="font">
+      <font>
+       <family>DejaVu Sans</family>
+       <pointsize>128</pointsize>
+       <weight>75</weight>
+       <italic>false</italic>
+       <bold>true</bold>
+       <underline>false</underline>
+      </font>
+     </property>
+     <property name="text">
+      <string>13:07</string>
+     </property>
+     <property name="scaledContents">
+      <bool>true</bool>
+     </property>
+     <property name="alignment">
+      <set>Qt::AlignCenter</set>
+     </property>
+     <property name="wordWrap">
+      <bool>true</bool>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

File ui/ui_timepanalwin.ui

-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>TimepanalWin</class>
- <widget class="QDialog" name="TimepanalWin">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>828</width>
-    <height>318</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Time Left</string>
-  </property>
-  <layout class="QVBoxLayout">
-   <property name="sizeConstraint">
-    <enum>QLayout::SetNoConstraint</enum>
-   </property>
-   <item>
-    <widget class="QLabel" name="time_left_lbl">
-     <property name="font">
-      <font>
-       <family>DejaVu Sans</family>
-       <pointsize>128</pointsize>
-       <weight>75</weight>
-       <italic>false</italic>
-       <bold>true</bold>
-       <underline>false</underline>
-      </font>
-     </property>
-     <property name="text">
-      <string>13:07</string>
-     </property>
-     <property name="scaledContents">
-      <bool>true</bool>
-     </property>
-     <property name="alignment">
-      <set>Qt::AlignCenter</set>
-     </property>
-     <property name="wordWrap">
-      <bool>true</bool>
-     </property>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>