MCPcopy Index your code
hub / github.com/geekcomputers/Python / create_styled_frame

Function create_styled_frame

bank_managment_system/QTFrontend.py:37–45  ·  view source on GitHub ↗

Create a styled QFrame with optional minimum size and custom style.

(parent, min_size=None, style="")

Source from the content-addressed store, hash-verified

35
36
37def create_styled_frame(parent, min_size=None, style=""):
38 """Create a styled QFrame with optional minimum size and custom style."""
39 frame = QtWidgets.QFrame(parent)
40 frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
41 frame.setFrameShadow(QtWidgets.QFrame.Raised)
42 if min_size:
43 frame.setMinimumSize(QtCore.QSize(*min_size))
44 frame.setStyleSheet(style)
45 return frame
46
47
48def create_styled_label(

Callers 15

create_input_fieldFunction · 0.85
create_input_field_VFunction · 0.85
search_resultFunction · 0.85
create_page_with_headerFunction · 0.85
get_employee_nameFunction · 0.85
create_login_pageFunction · 0.85
create_home_pageFunction · 0.85
create_admin_menu_pageFunction · 0.85
create_add_employee_pageFunction · 0.85
show_employee_list_pageFunction · 0.85
show_total_moneyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected