Compare commits

..

4 Commits

7 changed files with 399 additions and 688 deletions

View File

@ -5,15 +5,11 @@ name = "pypi"
[packages]
pyqt5 = "*"
flask = "*"
pipfile-requirements = "*"
pylama = "*"
ffmpeg = "*"
pip = "*"
ffmpeg-python = "*"
pydub = "*"
sound = "*"
pysignal = "*"
pathlib = "*"
[dev-packages]

230
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "97d779996cd5a22333bb688b9bf3ef013963d64876f4def420e6651d98165e23"
"sha256": "30ce0a43b2f7f520803d5817c5010ab0f07cef45064cb3db25ca281e10d66719"
},
"pipfile-spec": 6,
"requires": {
@ -16,148 +16,6 @@
]
},
"default": {
"cffi": {
"hashes": [
"sha256:00a1ba5e2e95684448de9b89888ccd02c98d512064b4cb987d48f4b40aa0421e",
"sha256:00e28066507bfc3fe865a31f325c8391a1ac2916219340f87dfad602c3e48e5d",
"sha256:045d792900a75e8b1e1b0ab6787dd733a8190ffcf80e8c8ceb2fb10a29ff238a",
"sha256:0638c3ae1a0edfb77c6765d487fee624d2b1ee1bdfeffc1f0b58c64d149e7eec",
"sha256:105abaf8a6075dc96c1fe5ae7aae073f4696f2905fde6aeada4c9d2926752362",
"sha256:155136b51fd733fa94e1c2ea5211dcd4c8879869008fc811648f16541bf99668",
"sha256:1a465cbe98a7fd391d47dce4b8f7e5b921e6cd805ef421d04f5f66ba8f06086c",
"sha256:1d2c4994f515e5b485fd6d3a73d05526aa0fcf248eb135996b088d25dfa1865b",
"sha256:2c24d61263f511551f740d1a065eb0212db1dbbbbd241db758f5244281590c06",
"sha256:51a8b381b16ddd370178a65360ebe15fbc1c71cf6f584613a7ea08bfad946698",
"sha256:594234691ac0e9b770aee9fcdb8fa02c22e43e5c619456efd0d6c2bf276f3eb2",
"sha256:5cf4be6c304ad0b6602f5c4e90e2f59b47653ac1ed9c662ed379fe48a8f26b0c",
"sha256:64081b3f8f6f3c3de6191ec89d7dc6c86a8a43911f7ecb422c60e90c70be41c7",
"sha256:6bc25fc545a6b3d57b5f8618e59fc13d3a3a68431e8ca5fd4c13241cd70d0009",
"sha256:798caa2a2384b1cbe8a2a139d80734c9db54f9cc155c99d7cc92441a23871c03",
"sha256:7c6b1dece89874d9541fc974917b631406233ea0440d0bdfbb8e03bf39a49b3b",
"sha256:840793c68105fe031f34d6a086eaea153a0cd5c491cde82a74b420edd0a2b909",
"sha256:8d6603078baf4e11edc4168a514c5ce5b3ba6e3e9c374298cb88437957960a53",
"sha256:9cc46bc107224ff5b6d04369e7c595acb700c3613ad7bcf2e2012f62ece80c35",
"sha256:9f7a31251289b2ab6d4012f6e83e58bc3b96bd151f5b5262467f4bb6b34a7c26",
"sha256:9ffb888f19d54a4d4dfd4b3f29bc2c16aa4972f1c2ab9c4ab09b8ab8685b9c2b",
"sha256:a5ed8c05548b54b998b9498753fb9cadbfd92ee88e884641377d8a8b291bcc01",
"sha256:a7711edca4dcef1a75257b50a2fbfe92a65187c47dab5a0f1b9b332c5919a3fb",
"sha256:af5c59122a011049aad5dd87424b8e65a80e4a6477419c0c1015f73fb5ea0293",
"sha256:b18e0a9ef57d2b41f5c68beefa32317d286c3d6ac0484efd10d6e07491bb95dd",
"sha256:b4e248d1087abf9f4c10f3c398896c87ce82a9856494a7155823eb45a892395d",
"sha256:ba4e9e0ae13fc41c6b23299545e5ef73055213e466bd107953e4a013a5ddd7e3",
"sha256:c6332685306b6417a91b1ff9fae889b3ba65c2292d64bd9245c093b1b284809d",
"sha256:d5ff0621c88ce83a28a10d2ce719b2ee85635e85c515f12bac99a95306da4b2e",
"sha256:d9efd8b7a3ef378dd61a1e77367f1924375befc2eba06168b6ebfa903a5e59ca",
"sha256:df5169c4396adc04f9b0a05f13c074df878b6052430e03f50e68adf3a57aa28d",
"sha256:ebb253464a5d0482b191274f1c8bf00e33f7e0b9c66405fbffc61ed2c839c775",
"sha256:ec80dc47f54e6e9a78181ce05feb71a0353854cc26999db963695f950b5fb375",
"sha256:f032b34669220030f905152045dfa27741ce1a6db3324a5bc0b96b6c7420c87b",
"sha256:f60567825f791c6f8a592f3c6e3bd93dd2934e3f9dac189308426bd76b00ef3b",
"sha256:f803eaa94c2fcda012c047e62bc7a51b0bdabda1cad7a92a522694ea2d76e49f"
],
"version": "==1.14.4"
},
"click": {
"hashes": [
"sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a",
"sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
"version": "==7.1.2"
},
"darr": {
"hashes": [
"sha256:2fdcfbfb23d9b78cdbdc8eacaf53b2fbc80f4aa398c96fa279c4b2676fe25e6d",
"sha256:3a57cdf75f0deba2ae03820f4f01747925bf8dac100a3fd9c3c90c56dfad2261"
],
"markers": "python_version >= '3.6'",
"version": "==0.2.2"
},
"ffmpeg": {
"hashes": [
"sha256:6931692c890ff21d39938433c2189747815dca0c60ddc7f9bb97f199dba0b5b9"
],
"index": "pypi",
"version": "==1.4"
},
"ffmpeg-python": {
"hashes": [
"sha256:65225db34627c578ef0e11c8b1eb528bb35e024752f6f10b78c011f6f64c4127",
"sha256:ac441a0404e053f8b6a1113a77c0f452f1cfc62f6344a769475ffdc0f56c23c5"
],
"index": "pypi",
"version": "==0.2.0"
},
"flask": {
"hashes": [
"sha256:4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060",
"sha256:8a4fdd8936eba2512e9c85df320a37e694c93945b33ef33c89946a340a238557"
],
"index": "pypi",
"version": "==1.1.2"
},
"future": {
"hashes": [
"sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d"
],
"markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==0.18.2"
},
"itsdangerous": {
"hashes": [
"sha256:321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19",
"sha256:b12271b2047cb23eeb98c8b5622e2e5c5e9abd9784a153e9d8ef9cb4dd09d749"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.1.0"
},
"jinja2": {
"hashes": [
"sha256:89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0",
"sha256:f0a4641d3cf955324a89c04f3d94663aa4d638abe8f733ecd3582848e1c37035"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
"version": "==2.11.2"
},
"markupsafe": {
"hashes": [
"sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473",
"sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161",
"sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235",
"sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5",
"sha256:13d3144e1e340870b25e7b10b98d779608c02016d5184cfb9927a9f10c689f42",
"sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff",
"sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b",
"sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1",
"sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e",
"sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183",
"sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66",
"sha256:596510de112c685489095da617b5bcbbac7dd6384aeebeda4df6025d0256a81b",
"sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1",
"sha256:6788b695d50a51edb699cb55e35487e430fa21f1ed838122d722e0ff0ac5ba15",
"sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1",
"sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e",
"sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b",
"sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905",
"sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735",
"sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d",
"sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e",
"sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d",
"sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c",
"sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21",
"sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2",
"sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5",
"sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b",
"sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6",
"sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f",
"sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f",
"sha256:cdb132fc825c38e1aeec2c8aa9338310d29d337bebbd7baa06889d09a60a1fa2",
"sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7",
"sha256:e8313f01ba26fbbe36c7be1966a7b7424942f670f38e666995b88d012765b9be"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.1.1"
},
"mccabe": {
"hashes": [
"sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42",
@ -165,46 +23,6 @@
],
"version": "==0.6.1"
},
"numpy": {
"hashes": [
"sha256:012426a41bc9ab63bb158635aecccc7610e3eff5d31d1eb43bc099debc979d94",
"sha256:06fab248a088e439402141ea04f0fffb203723148f6ee791e9c75b3e9e82f080",
"sha256:0eef32ca3132a48e43f6a0f5a82cb508f22ce5a3d6f67a8329c81c8e226d3f6e",
"sha256:1ded4fce9cfaaf24e7a0ab51b7a87be9038ea1ace7f34b841fe3b6894c721d1c",
"sha256:2e55195bc1c6b705bfd8ad6f288b38b11b1af32f3c8289d6c50d47f950c12e76",
"sha256:2ea52bd92ab9f768cc64a4c3ef8f4b2580a17af0a5436f6126b08efbd1838371",
"sha256:36674959eed6957e61f11c912f71e78857a8d0604171dfd9ce9ad5cbf41c511c",
"sha256:384ec0463d1c2671170901994aeb6dce126de0a95ccc3976c43b0038a37329c2",
"sha256:39b70c19ec771805081578cc936bbe95336798b7edf4732ed102e7a43ec5c07a",
"sha256:400580cbd3cff6ffa6293df2278c75aef2d58d8d93d3c5614cd67981dae68ceb",
"sha256:43d4c81d5ffdff6bae58d66a3cd7f54a7acd9a0e7b18d97abb255defc09e3140",
"sha256:50a4a0ad0111cc1b71fa32dedd05fa239f7fb5a43a40663269bb5dc7877cfd28",
"sha256:603aa0706be710eea8884af807b1b3bc9fb2e49b9f4da439e76000f3b3c6ff0f",
"sha256:6149a185cece5ee78d1d196938b2a8f9d09f5a5ebfbba66969302a778d5ddd1d",
"sha256:759e4095edc3c1b3ac031f34d9459fa781777a93ccc633a472a5468587a190ff",
"sha256:7fb43004bce0ca31d8f13a6eb5e943fa73371381e53f7074ed21a4cb786c32f8",
"sha256:811daee36a58dc79cf3d8bdd4a490e4277d0e4b7d103a001a4e73ddb48e7e6aa",
"sha256:8b5e972b43c8fc27d56550b4120fe6257fdc15f9301914380b27f74856299fea",
"sha256:99abf4f353c3d1a0c7a5f27699482c987cf663b1eac20db59b8c7b061eabd7fc",
"sha256:a0d53e51a6cb6f0d9082decb7a4cb6dfb33055308c4c44f53103c073f649af73",
"sha256:a12ff4c8ddfee61f90a1633a4c4afd3f7bcb32b11c52026c92a12e1325922d0d",
"sha256:a4646724fba402aa7504cd48b4b50e783296b5e10a524c7a6da62e4a8ac9698d",
"sha256:a76f502430dd98d7546e1ea2250a7360c065a5fdea52b2dffe8ae7180909b6f4",
"sha256:a9d17f2be3b427fbb2bce61e596cf555d6f8a56c222bd2ca148baeeb5e5c783c",
"sha256:ab83f24d5c52d60dbc8cd0528759532736b56db58adaa7b5f1f76ad551416a1e",
"sha256:aeb9ed923be74e659984e321f609b9ba54a48354bfd168d21a2b072ed1e833ea",
"sha256:c843b3f50d1ab7361ca4f0b3639bf691569493a56808a0b0c54a051d260b7dbd",
"sha256:cae865b1cae1ec2663d8ea56ef6ff185bad091a5e33ebbadd98de2cfa3fa668f",
"sha256:cc6bd4fd593cb261332568485e20a0712883cf631f6f5e8e86a52caa8b2b50ff",
"sha256:cf2402002d3d9f91c8b01e66fbb436a4ed01c6498fffed0e4c7566da1d40ee1e",
"sha256:d051ec1c64b85ecc69531e1137bb9751c6830772ee5c1c426dbcfe98ef5788d7",
"sha256:d6631f2e867676b13026e2846180e2c13c1e11289d67da08d71cacb2cd93d4aa",
"sha256:dbd18bcf4889b720ba13a27ec2f2aac1981bd41203b3a3b27ba7a33f88ae4827",
"sha256:df609c82f18c5b9f6cb97271f03315ff0dbe481a2a02e56aeb1b1a985ce38e60"
],
"markers": "python_version >= '3.6'",
"version": "==1.19.5"
},
"packaging": {
"hashes": [
"sha256:24e0da08660a87484d1602c30bb4902d74816b6985b93de36926f5bc95741858",
@ -213,6 +31,13 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==20.8"
},
"pathlib": {
"hashes": [
"sha256:6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f"
],
"index": "pypi",
"version": "==1.0.1"
},
"pipfile-requirements": {
"hashes": [
"sha256:d47591d46d8bfecf9257967992feae31fa83aff7ab6417373c7de5ea92ab849f",
@ -229,14 +54,6 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.6.0"
},
"pycparser": {
"hashes": [
"sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0",
"sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.20"
},
"pydocstyle": {
"hashes": [
"sha256:19b86fa8617ed916776a11cd8bc0197e5b9856d5433b777f51a3defe13075325",
@ -317,27 +134,10 @@
},
"snowballstemmer": {
"hashes": [
"sha256:209f257d7533fdb3cb73bdbd24f436239ca3b2fa67d56f6ff88e86be08cc5ef0",
"sha256:df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52"
"sha256:b51b447bea85f9968c13b650126a888aabd4cb4463fca868ec596826325dedc2",
"sha256:e997baa4f2e9139951b6f4c631bad912dfd3c792467e2f03d7239464af90e914"
],
"version": "==2.0.0"
},
"sound": {
"hashes": [
"sha256:bc5baa8cf11152bdeda1197b6390608d874d8c917f7542b7c06485a952340ee3"
],
"index": "pypi",
"version": "==0.1.0"
},
"soundfile": {
"hashes": [
"sha256:2d17e0a6fc2af0d6c1d868bafa5ec80aae6e186a97fec8db07ad6af29842fbc7",
"sha256:4555438c2c4f02b39fea2ed40f6ddeda88a80cd1ee9dd129be4d5f5134698cc2",
"sha256:490cff42650733d1832728b937fe99fa1802896f5ef4d61bcf78cf7ebecb107b",
"sha256:5e342ee293b896d31da67617fe65d0bdca217af193991b0cb6052353b1e0e506",
"sha256:b361d4ac1519a2e516cabafa6bf7e93492f999f35d7d25350cd87fdc3e5cb27e"
],
"version": "==0.10.3.post1"
"version": "==2.1.0"
},
"toml": {
"hashes": [
@ -346,14 +146,6 @@
],
"markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==0.10.2"
},
"werkzeug": {
"hashes": [
"sha256:2de2a5db0baeae7b2d2664949077c2ac63fbd16d98da0ff71837f7d1dea3fd43",
"sha256:6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
"version": "==1.0.1"
}
},
"develop": {}

View File

@ -1,19 +1,18 @@
click==7.1.2
ffmpeg==1.4
Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
mccabe==0.6.1
packaging==20.8
pipfile-requirements==0.3.0
pycodestyle==2.6.0
pydocstyle==5.1.1
pyflakes==2.2.0
pylama==7.7.1
pyparsing==2.4.7
PyQt5==5.15.2
PyQt5-sip==12.8.1
snowballstemmer==2.0.0
toml==0.10.2
Werkzeug==1.0.1
################################################################################
# This requirements file has been automatically generated from `Pipfile` with
# `pipenv-to-requirements`
#
#
# This has been done to maintain backward compatibility with tools and services
# that do not support `Pipfile` yet.
#
# Do NOT edit it directly, use `pipenv install [-d]` to modify `Pipfile` and
# `Pipfile.lock` and then regenerate `requirements*.txt`.
################################################################################
pathlib
pip
pipfile-requirements
pydub
pylama
pyqt5

View File

@ -6,14 +6,20 @@
<rect>
<x>0</x>
<y>0</y>
<width>554</width>
<height>807</height>
<width>501</width>
<height>740</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>500</width>
<height>740</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>800</width>
<height>16777215</height>
<width>600</width>
<height>800</height>
</size>
</property>
<property name="windowTitle">
@ -172,341 +178,273 @@
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="w_layout_avatars_1_and_2">
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_1">
<item>
<widget class="QLabel" name="preview_label_avatar_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - rozmówcy aktywni</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Rozmówcy - aktywni</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="h_spacer_1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
<layout class="QGridLayout" name="grid_layout">
<item row="2" column="1">
<widget class="QLabel" name="preview_label_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<property name="minimumSize">
<size>
<width>5</width>
<height>5</height>
<width>200</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_2">
<item>
<widget class="QLabel" name="preview_label_avatar_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - rozmówcy nieaktywni</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Rozmówcy - nieaktywni</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="v_spacer_1">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>5</width>
<height>5</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QHBoxLayout" name="w_layout_avatars_3_and_4">
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_3">
<item>
<widget class="QLabel" name="preview_label_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - 1 rozmówca aktywny</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Pierwszy rozmówca - aktywny</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="h_spacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<property name="maximumSize">
<size>
<width>5</width>
<height>5</height>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</spacer>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - 2 rozmówca aktywny</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="w_layout_avatar_4">
<item>
<widget class="QLabel" name="preview_label_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - 2 rozmówca aktywny</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="button_select_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>35</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Drugi rozmówca - aktywny</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
<item row="1" column="1">
<widget class="QPushButton" name="button_select_avatar_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Rozmówcy - nieaktywni</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="preview_label_avatar_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - rozmówcy nieaktywni</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="preview_label_avatar_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - rozmówcy aktywni</string>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="button_select_avatar_1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Rozmówcy - aktywni</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="preview_label_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::Box</enum>
</property>
<property name="text">
<string>Podgląd - 1 rozmówca aktywny</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="path" stdset="0">
<string/>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="button_select_avatar_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Drugi rozmówca - aktywny</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="button_select_avatar_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>200</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>400</width>
<height>35</height>
</size>
</property>
<property name="text">
<string>Pierwszy rozmówca - aktywny</string>
</property>
<property name="icon">
<iconset resource="../../../resources.qrc">
<normaloff>:/icons/src/gui/images/icons/import.png</normaloff>:/icons/src/gui/images/icons/import.png</iconset>
</property>
</widget>
</item>
</layout>
</item>
@ -639,17 +577,18 @@
<zorder>h_line_2</zorder>
<zorder>threshold_slider</zorder>
<zorder>h_line_3</zorder>
<zorder>v_spacer_1</zorder>
<zorder>check_box_connected_channels</zorder>
<zorder>progress_bar</zorder>
<zorder>log_label</zorder>
<zorder></zorder>
<zorder>gridLayoutWidget</zorder>
</widget>
<widget class="QMenuBar" name="menu_bar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>554</width>
<width>501</width>
<height>32</height>
</rect>
</property>

View File

@ -94,6 +94,8 @@ class MainWindow(QMainWindow, QApplication, Ui_MainWindow):
"""TODO: add names to images"""
self.line_edit_name_1.setDisabled(True)
self.line_edit_name_2.setDisabled(True)
self.line_edit_name_1.hide()
self.line_edit_name_2.hide()
def test_data(self, option=1):
"""Test data."""

View File

@ -79,6 +79,9 @@ class PreviewCreatorDialog(QDialog, Ui_PreviewCreatorDialog):
self.play_signal.connect(self.video_dialog.player.play)
self.setAcceptDrops(True)
self.log_label.hide()
self.progress_bar.hide()
def open_dialog(self):
""" Open video dialog """
if self.video_dialog.isHidden():

View File

@ -14,8 +14,9 @@ from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(554, 807)
MainWindow.setMaximumSize(QtCore.QSize(800, 16777215))
MainWindow.resize(501, 740)
MainWindow.setMinimumSize(QtCore.QSize(500, 740))
MainWindow.setMaximumSize(QtCore.QSize(600, 800))
self.central_widget = QtWidgets.QWidget(MainWindow)
self.central_widget.setMinimumSize(QtCore.QSize(0, 0))
self.central_widget.setObjectName("central_widget")
@ -87,131 +88,110 @@ class Ui_MainWindow(object):
self.h_line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.h_line.setObjectName("h_line")
self.verticalLayout.addWidget(self.h_line)
self.w_layout_avatars_1_and_2 = QtWidgets.QHBoxLayout()
self.w_layout_avatars_1_and_2.setObjectName("w_layout_avatars_1_and_2")
self.w_layout_avatar_1 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_1.setObjectName("w_layout_avatar_1")
self.preview_label_avatar_1 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_1.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_1.setSizePolicy(sizePolicy)
self.preview_label_avatar_1.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_1.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_1.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_1.setScaledContents(True)
self.preview_label_avatar_1.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_1.setProperty("path", "")
self.preview_label_avatar_1.setObjectName("preview_label_avatar_1")
self.w_layout_avatar_1.addWidget(self.preview_label_avatar_1)
self.button_select_avatar_1 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_1.sizePolicy().hasHeightForWidth())
self.button_select_avatar_1.setSizePolicy(sizePolicy)
self.button_select_avatar_1.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_1.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_1.setIcon(icon)
self.button_select_avatar_1.setObjectName("button_select_avatar_1")
self.w_layout_avatar_1.addWidget(self.button_select_avatar_1)
self.w_layout_avatars_1_and_2.addLayout(self.w_layout_avatar_1)
spacerItem = QtWidgets.QSpacerItem(5, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.w_layout_avatars_1_and_2.addItem(spacerItem)
self.w_layout_avatar_2 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_2.setObjectName("w_layout_avatar_2")
self.preview_label_avatar_2 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_2.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_2.setSizePolicy(sizePolicy)
self.preview_label_avatar_2.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_2.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_2.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_2.setScaledContents(True)
self.preview_label_avatar_2.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_2.setProperty("path", "")
self.preview_label_avatar_2.setObjectName("preview_label_avatar_2")
self.w_layout_avatar_2.addWidget(self.preview_label_avatar_2)
self.button_select_avatar_2 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_2.sizePolicy().hasHeightForWidth())
self.button_select_avatar_2.setSizePolicy(sizePolicy)
self.button_select_avatar_2.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_2.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_2.setIcon(icon)
self.button_select_avatar_2.setObjectName("button_select_avatar_2")
self.w_layout_avatar_2.addWidget(self.button_select_avatar_2)
self.w_layout_avatars_1_and_2.addLayout(self.w_layout_avatar_2)
self.verticalLayout.addLayout(self.w_layout_avatars_1_and_2)
spacerItem1 = QtWidgets.QSpacerItem(5, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.verticalLayout.addItem(spacerItem1)
self.w_layout_avatars_3_and_4 = QtWidgets.QHBoxLayout()
self.w_layout_avatars_3_and_4.setObjectName("w_layout_avatars_3_and_4")
self.w_layout_avatar_3 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_3.setObjectName("w_layout_avatar_3")
self.preview_label_avatar_3 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_3.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_3.setSizePolicy(sizePolicy)
self.preview_label_avatar_3.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_3.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_3.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_3.setTextFormat(QtCore.Qt.RichText)
self.preview_label_avatar_3.setScaledContents(True)
self.preview_label_avatar_3.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_3.setProperty("path", "")
self.preview_label_avatar_3.setObjectName("preview_label_avatar_3")
self.w_layout_avatar_3.addWidget(self.preview_label_avatar_3)
self.button_select_avatar_3 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_3.sizePolicy().hasHeightForWidth())
self.button_select_avatar_3.setSizePolicy(sizePolicy)
self.button_select_avatar_3.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_3.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_3.setIcon(icon)
self.button_select_avatar_3.setObjectName("button_select_avatar_3")
self.w_layout_avatar_3.addWidget(self.button_select_avatar_3)
self.w_layout_avatars_3_and_4.addLayout(self.w_layout_avatar_3)
spacerItem2 = QtWidgets.QSpacerItem(5, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
self.w_layout_avatars_3_and_4.addItem(spacerItem2)
self.w_layout_avatar_4 = QtWidgets.QVBoxLayout()
self.w_layout_avatar_4.setObjectName("w_layout_avatar_4")
self.grid_layout = QtWidgets.QGridLayout()
self.grid_layout.setObjectName("grid_layout")
self.preview_label_avatar_4 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_4.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_4.setSizePolicy(sizePolicy)
self.preview_label_avatar_4.setMinimumSize(QtCore.QSize(0, 150))
self.preview_label_avatar_4.setMaximumSize(QtCore.QSize(400, 16777215))
self.preview_label_avatar_4.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_4.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_4.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_4.setScaledContents(True)
self.preview_label_avatar_4.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_4.setProperty("path", "")
self.preview_label_avatar_4.setObjectName("preview_label_avatar_4")
self.w_layout_avatar_4.addWidget(self.preview_label_avatar_4)
self.grid_layout.addWidget(self.preview_label_avatar_4, 2, 1, 1, 1)
self.button_select_avatar_2 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_2.sizePolicy().hasHeightForWidth())
self.button_select_avatar_2.setSizePolicy(sizePolicy)
self.button_select_avatar_2.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_2.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_2.setIcon(icon)
self.button_select_avatar_2.setObjectName("button_select_avatar_2")
self.grid_layout.addWidget(self.button_select_avatar_2, 1, 1, 1, 1)
self.preview_label_avatar_2 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_2.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_2.setSizePolicy(sizePolicy)
self.preview_label_avatar_2.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_2.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_2.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_2.setScaledContents(True)
self.preview_label_avatar_2.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_2.setProperty("path", "")
self.preview_label_avatar_2.setObjectName("preview_label_avatar_2")
self.grid_layout.addWidget(self.preview_label_avatar_2, 0, 1, 1, 1)
self.preview_label_avatar_1 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_1.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_1.setSizePolicy(sizePolicy)
self.preview_label_avatar_1.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_1.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_1.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_1.setScaledContents(True)
self.preview_label_avatar_1.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_1.setProperty("path", "")
self.preview_label_avatar_1.setObjectName("preview_label_avatar_1")
self.grid_layout.addWidget(self.preview_label_avatar_1, 0, 0, 1, 1)
self.button_select_avatar_1 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_1.sizePolicy().hasHeightForWidth())
self.button_select_avatar_1.setSizePolicy(sizePolicy)
self.button_select_avatar_1.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_1.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_1.setIcon(icon)
self.button_select_avatar_1.setObjectName("button_select_avatar_1")
self.grid_layout.addWidget(self.button_select_avatar_1, 1, 0, 1, 1)
self.preview_label_avatar_3 = QtWidgets.QLabel(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.preview_label_avatar_3.sizePolicy().hasHeightForWidth())
self.preview_label_avatar_3.setSizePolicy(sizePolicy)
self.preview_label_avatar_3.setMinimumSize(QtCore.QSize(200, 0))
self.preview_label_avatar_3.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.preview_label_avatar_3.setFrameShape(QtWidgets.QFrame.Box)
self.preview_label_avatar_3.setTextFormat(QtCore.Qt.RichText)
self.preview_label_avatar_3.setScaledContents(True)
self.preview_label_avatar_3.setAlignment(QtCore.Qt.AlignCenter)
self.preview_label_avatar_3.setProperty("path", "")
self.preview_label_avatar_3.setObjectName("preview_label_avatar_3")
self.grid_layout.addWidget(self.preview_label_avatar_3, 2, 0, 1, 1)
self.button_select_avatar_4 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_4.sizePolicy().hasHeightForWidth())
self.button_select_avatar_4.setSizePolicy(sizePolicy)
self.button_select_avatar_4.setMinimumSize(QtCore.QSize(200, 35))
self.button_select_avatar_4.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_4.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_4.setIcon(icon)
self.button_select_avatar_4.setObjectName("button_select_avatar_4")
self.w_layout_avatar_4.addWidget(self.button_select_avatar_4)
self.w_layout_avatars_3_and_4.addLayout(self.w_layout_avatar_4)
self.verticalLayout.addLayout(self.w_layout_avatars_3_and_4)
self.grid_layout.addWidget(self.button_select_avatar_4, 3, 1, 1, 1)
self.button_select_avatar_3 = QtWidgets.QPushButton(self.central_widget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.button_select_avatar_3.sizePolicy().hasHeightForWidth())
self.button_select_avatar_3.setSizePolicy(sizePolicy)
self.button_select_avatar_3.setMinimumSize(QtCore.QSize(200, 0))
self.button_select_avatar_3.setMaximumSize(QtCore.QSize(400, 35))
self.button_select_avatar_3.setIcon(icon)
self.button_select_avatar_3.setObjectName("button_select_avatar_3")
self.grid_layout.addWidget(self.button_select_avatar_3, 3, 0, 1, 1)
self.verticalLayout.addLayout(self.grid_layout)
self.h_line_2 = QtWidgets.QFrame(self.central_widget)
self.h_line_2.setFrameShape(QtWidgets.QFrame.HLine)
self.h_line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
@ -279,7 +259,7 @@ class Ui_MainWindow(object):
self.log_label.raise_()
MainWindow.setCentralWidget(self.central_widget)
self.menu_bar = QtWidgets.QMenuBar(MainWindow)
self.menu_bar.setGeometry(QtCore.QRect(0, 0, 554, 32))
self.menu_bar.setGeometry(QtCore.QRect(0, 0, 501, 32))
self.menu_bar.setObjectName("menu_bar")
self.menu_project = QtWidgets.QMenu(self.menu_bar)
self.menu_project.setObjectName("menu_project")
@ -347,14 +327,14 @@ class Ui_MainWindow(object):
self.line_edit_name_2.setPlaceholderText(_translate("MainWindow", "Imię 2 rozmówcy"))
self.button_audio_2.setText(_translate("MainWindow", "Dodaj audio 2"))
self.check_box_connected_channels.setText(_translate("MainWindow", "Zaznacz jeśli kanały rozmówców są połączone w jednym nagraniu"))
self.preview_label_avatar_4.setText(_translate("MainWindow", "Podgląd - 2 rozmówca aktywny"))
self.button_select_avatar_2.setText(_translate("MainWindow", "Rozmówcy - nieaktywni"))
self.preview_label_avatar_2.setText(_translate("MainWindow", "Podgląd - rozmówcy nieaktywni"))
self.preview_label_avatar_1.setText(_translate("MainWindow", "Podgląd - rozmówcy aktywni"))
self.button_select_avatar_1.setText(_translate("MainWindow", "Rozmówcy - aktywni"))
self.preview_label_avatar_2.setText(_translate("MainWindow", "Podgląd - rozmówcy nieaktywni"))
self.button_select_avatar_2.setText(_translate("MainWindow", "Rozmówcy - nieaktywni"))
self.preview_label_avatar_3.setText(_translate("MainWindow", "Podgląd - 1 rozmówca aktywny"))
self.button_select_avatar_3.setText(_translate("MainWindow", "Pierwszy rozmówca - aktywny"))
self.preview_label_avatar_4.setText(_translate("MainWindow", "Podgląd - 2 rozmówca aktywny"))
self.button_select_avatar_4.setText(_translate("MainWindow", "Drugi rozmówca - aktywny"))
self.button_select_avatar_3.setText(_translate("MainWindow", "Pierwszy rozmówca - aktywny"))
self.label_threshold_description.setText(_translate("MainWindow", "Poziom wykrywania głosu:"))
self.button_preview.setText(_translate("MainWindow", "Podgląd"))
self.button_generate.setText(_translate("MainWindow", "Wygeneruj podcast"))