Skip to content

Commit

Permalink
Update 21 and 22 project
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcanyarimdunya committed Dec 26, 2019
1 parent edb76ef commit 977c824
Show file tree
Hide file tree
Showing 16 changed files with 320 additions and 174 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
"[Proje - 19] Sqlite3 \304\260\305\237lemleri/__pycache__/"
"[Proje - 19] Sqlite3 \304\260\305\237lemleri/okul.db"
venv/
.idea/
6 changes: 3 additions & 3 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions 21 - Çarpım Tablosu GUI/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,20 @@ def on_result_entered(self):
correct_answer = str(self.num1 * self.num2)
user_answer = self.txt_result.text()
self.txt_result.setText('')
self.start()

self.lbl_result.setText(correct_answer)
if correct_answer == user_answer:
result = "{}x{}={}".format(
self.num1, self.num2, correct_answer
)
self.lbl_result.setStyleSheet('color: green')
else:
result = "{}x{}={} >> {}".format(
self.num1, self.num2, user_answer, correct_answer
)
self.lbl_result.setStyleSheet('color: red')
self.lbl_result.setText(result)

self.start()


if __name__ == "__main__":
Expand Down
3 changes: 0 additions & 3 deletions 22 - Qt4 Designer ListWidgets/README.md

This file was deleted.

103 changes: 0 additions & 103 deletions 22 - Qt4 Designer ListWidgets/main.py

This file was deleted.

62 changes: 0 additions & 62 deletions 22 - Qt4 Designer ListWidgets/scrapper.py

This file was deleted.

1 change: 1 addition & 0 deletions 22 - Qt5 Designer ListWidgets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![](../assets/22/1.png)
119 changes: 119 additions & 0 deletions 22 - Qt5 Designer ListWidgets/form.ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>500</height>
</rect>
</property>
<property name="windowTitle">
<string>Tv Kanalları Yayın Akışı</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout_2" columnstretch="0,0,1,0">
<item row="0" column="1" colspan="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" rowspan="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1">
<widget class="QListWidget" name="lw_channels"/>
</item>
<item row="1" column="2">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLabel" name="lbl_name">
<property name="font">
<font>
<pointsize>15</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="lbl_logo">
<property name="minimumSize">
<size>
<width>150</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>150</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QListWidget" name="lw_streams"/>
</item>
</layout>
</item>
<item row="2" column="0" colspan="4">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="3">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>
Loading

0 comments on commit 977c824

Please sign in to comment.