Modern UI

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

mhalil wrote: Sat Jan 09, 2021 6:42 pm Maalesef arabirim düzgün görüntülenmiyor.
Daha önce yükleyip kuualnmıştım.
Yanlış ya da eksik bir şey mi yaptım anlamadım.
Sistem bilgilerinide yollar mısın?
User avatar
mhalil
Posts: 212
Joined: Tue Dec 01, 2020 6:42 pm
Location: İstanbul / Türkiye
Contact:

Re: Modern UI

Post by mhalil »

HakanSeven12 wrote: Mon Jan 11, 2021 5:38 am
Sistem bilgilerinide yollar mısın?
OS: Linux Mint 20.1 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23546 (Git) AppImage
Build type: Release
Branch: master
Hash: 6b017f9a16b15b0e628c8d874c4058442dee5548
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: Turkish/Turkey (tr_TR)
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Bu hatayla hiç karşılaşmadım. User.cfg ve System.cfg yi sildim. FreeCAD'i ve Modern UI'yi sildim kurdum. Hatta başka bir bilgisayara bile kurdum fakat hatayla karşılaşmadım :) Part Design aktifken şunu python konsolunda dener misin? Modern UI kurmana gerek yok.

Code: Select all

workbench = FreeCADGui.activeWorkbench()
workbench.listMenus()
User avatar
mhalil
Posts: 212
Joined: Tue Dec 01, 2020 6:42 pm
Location: İstanbul / Türkiye
Contact:

Re: Modern UI

Post by mhalil »

HakanSeven12 wrote: Tue Jan 12, 2021 6:08 am Bu hatayla hiç karşılaşmadım. User.cfg ve System.cfg yi sildim. FreeCAD'i ve Modern UI'yi sildim kurdum. Hatta başka bir bilgisayara bile kurdum fakat hatayla karşılaşmadım :) Part Design aktifken şunu python konsolunda dener misin? Modern UI kurmana gerek yok.

Code: Select all

workbench = FreeCADGui.activeWorkbench()
workbench.listMenus()
Kod Çıktısı:
>>> workbench = FreeCADGui.activeWorkbench()
>>> workbench.listMenus()
['&File', '&Edit', '&View', '&Tools', '&Macro', '&Sketch', '&Part Design', 'Measure', '&Windows', 'Separator', '&Help']
Attachments
code_.jpg
code_.jpg (133.46 KiB) Viewed 4432 times
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Aynı kod Modern UI içinde hata veriyor ama sen konsoldan girince düzgün çalışıyor. Hatanın sebebini anlayamadım malesef.
User avatar
mhalil
Posts: 212
Joined: Tue Dec 01, 2020 6:42 pm
Location: İstanbul / Türkiye
Contact:

Re: Modern UI

Post by mhalil »

HakanSeven12 wrote: Wed Jan 13, 2021 6:09 am Aynı kod Modern UI içinde hata veriyor ama sen konsoldan girince düzgün çalışıyor. Hatanın sebebini anlayamadım malesef.
Sağlık olsun, ne yapalım :)
Ara ara deniyorum. Sorun muhetemelen benden (kurcaladığım ayarlardan) kaynaklıdır.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Modern UI

Post by Kunda1 »

Shall we make a Turkic language subforum? It's a little confusing to non-turkish speakers to mix languages in a thread.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Why not
KVos4
Posts: 2
Joined: Sun Jan 17, 2021 9:59 pm

Re: Modern UI

Post by KVos4 »

Hello,

Fantastic addon! Had some good use out of it until I started to encounter a major error. Occurred after I changed the order of the workbenches in the ModernUI settings...

Code: Select all

16:58:08  Traceback (most recent call last):
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 147, in selectWorkbench
16:58:08      self.createFileMenu()
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 91, in createFileMenu
16:58:08      menu_list = workbench.listMenus()
16:58:08    File "<string>", line 70, in listMenus
16:58:08  AttributeError: 'StartWorkbench' object has no attribute '__Workbench__'
16:58:08  Traceback (most recent call last):
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 276, in __init__
16:58:08      QtCore.Qt.TopDockWidgetArea, MenuDock())
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 46, in __init__
16:58:08      self.setWidget(ModernMenu())
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 67, in __init__
16:58:08      self.selectWorkbench()
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 147, in selectWorkbench
16:58:08      self.createFileMenu()
16:58:08    File "C:\Users\Kevin\AppData\Roaming\FreeCAD\Mod\ModernUI\FCBinding.py", line 91, in createFileMenu
16:58:08      menu_list = workbench.listMenus()
16:58:08    File "<string>", line 70, in listMenus
16:58:08  AttributeError: 'StartWorkbench' object has no attribute '__Workbench__'
Have tried all the solutions already discussed on the forum with no luck, including removing and updating both the addon and the entire FreeCAD software, as well as modifying preferences files. Using FreeCAD version 0.19.23683, OS: Windows 10 (x64).
Last edited by Kunda1 on Mon Jan 18, 2021 12:01 pm, edited 1 time in total.
Reason: Added code tags
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Modern UI

Post by HakanSeven12 »

Hi
Disable start workbench. I already saw this. Its not returning a workbench object and that cause this error. Maybe I can put a pass code for it.
Post Reply