Commits

anshik  committed b0fcf5c

ten meetings, but not true time

  • Participants
  • Parent commits 65d6901

Comments (0)

Files changed (3)

File src/gen_ui.sh

 pyuic4 -x ui/ui_main_window_with_version.ui > ui/ui_main_window.py
 rm -f ui/ui_main_window_with_version.ui
 
-pyuic4 -x ui/add_meeting.ui > ui/ui_add_meeting.py
+pyuic4 -x ui/add_meeting.ui > ui/ui_add_meeting.py
+pyuic4 -x ui/ten_meetings.ui > ui/ui_ten_meetings.py

File src/main_window.py

 from pyfo import pyfo
 from add_meeting import AddMeeting
 from ui_main_window import Ui_MainWindow
+from ui_ten_meetings import Ui_Dialog_10
 
 import os
 
+
 class TableLabel(QtGui.QLabel):
     def __init__(self, tw):
         self.tw = tw
                 cur_rec.append((table_fields[j-1], unicode(record.value(j).toString())))
             test_input.append(('meeting',cur_rec))
 
-        out2 = ('meetings',test_input[-3:]) #3 yet
+        out2 = ('meetings',test_input[-10:]) #3 yet
 
         result = pyfo(out2, pretty=True, prolog=True, encoding='utf-8')
-        print result.encode('utf-8', 'xmlcharrefreplace')
+
+        Dialog_10 = QtGui.QDialog()
+        ui = Ui_Dialog_10()
+        ui.setupUi(Dialog_10)
+
+        ui.te_10.setText(QtCore.QString.fromUtf8(result.encode('utf-8', 'xmlcharrefreplace')))
+        Dialog_10.exec_()
 
 
     def cb_filter_changed(self, state):

File src/ui/ten_meetings.ui

+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Dialog_10</class>
+ <widget class="QDialog" name="Dialog_10">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>656</width>
+    <height>625</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Грядущие 10 встреч</string>
+  </property>
+  <widget class="QTextEdit" name="te_10">
+   <property name="geometry">
+    <rect>
+     <x>10</x>
+     <y>20</y>
+     <width>641</width>
+     <height>591</height>
+    </rect>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>