gui-utilities 1.0.0__tar.gz → 1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gui_utilities
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Librería de utilidades gráficas en PyQt6
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -19,7 +19,7 @@ def create_window(title, background_color = "#1e1e1e"):
19
19
  return window
20
20
 
21
21
  def create_label(
22
- message,
22
+ text,
23
23
  font_family = "Segoe UI",
24
24
  font_size = 14,
25
25
  font_color = "#ffffff",
@@ -30,7 +30,7 @@ def create_label(
30
30
  border_color = "#ffffff",
31
31
  border_radius = 0
32
32
  ):
33
- label = QLabel(message)
33
+ label = QLabel(text)
34
34
  style = f"""
35
35
  font-family: {font_family};
36
36
  font-size: {font_size}px;
@@ -45,7 +45,7 @@ def create_label(
45
45
  return label
46
46
 
47
47
  def create_button(
48
- message,
48
+ text,
49
49
  font_family = "Segoe UI",
50
50
  font_size = 14,
51
51
  font_color = "#ffffff",
@@ -66,7 +66,7 @@ def create_button(
66
66
  disabled_border_width = 2,
67
67
  disabled_border_color = "#4a4a4a"
68
68
  ):
69
- button = QPushButton(message)
69
+ button = QPushButton(text)
70
70
  style_sheet = f"""
71
71
  QPushButton {{
72
72
  font-family: {font_family};
@@ -266,7 +266,7 @@ def create_combo_box(
266
266
  return combo_box
267
267
 
268
268
  def create_information_message_box(
269
- message,
269
+ text,
270
270
  top_margin = 25,
271
271
  bottom_margin = 25,
272
272
  left_margin = 25,
@@ -283,7 +283,7 @@ def create_information_message_box(
283
283
  label_border_width = 0,
284
284
  label_border_color = "#ffffff",
285
285
  label_border_radius = 0,
286
- button_message = "Aceptar",
286
+ button_text = "Aceptar",
287
287
  button_font_family = "Segoe UI",
288
288
  button_font_size = 14,
289
289
  button_font_color = "#ffffff",
@@ -319,8 +319,8 @@ def create_information_message_box(
319
319
  message_box.setLayout(main_layout)
320
320
  main_layout.setContentsMargins(left_margin, top_margin, right_margin, bottom_margin)
321
321
  main_layout.setSpacing(spacing)
322
- message_label = create_label(
323
- message = message,
322
+ text_label = create_label(
323
+ text = text,
324
324
  font_family = label_font_family,
325
325
  font_size = label_font_size,
326
326
  font_color= label_font_color,
@@ -330,10 +330,10 @@ def create_information_message_box(
330
330
  border_color = label_border_color,
331
331
  border_radius = label_border_radius
332
332
  )
333
- main_layout.addWidget(message_label)
333
+ main_layout.addWidget(text_label)
334
334
 
335
335
  accept_button = create_button(
336
- message = button_message,
336
+ text = button_text,
337
337
  font_family = button_font_family,
338
338
  font_size = button_font_size,
339
339
  font_color = button_font_color,
@@ -358,7 +358,7 @@ def create_information_message_box(
358
358
  return message_box
359
359
 
360
360
  def create_confirmation_message_box(
361
- message,
361
+ text,
362
362
  top_margin = 25,
363
363
  bottom_margin = 25,
364
364
  left_margin = 25,
@@ -411,10 +411,10 @@ def create_confirmation_message_box(
411
411
  confirm_message_box.setLayout(main_layout)
412
412
  main_layout.setContentsMargins(left_margin, top_margin, right_margin, bottom_margin)
413
413
  main_layout.setSpacing(main_spacing)
414
- message_layout = QHBoxLayout()
415
- main_layout.addLayout(message_layout)
416
- message_label = create_label(
417
- message = message,
414
+ text_layout = QHBoxLayout()
415
+ main_layout.addLayout(text_layout)
416
+ text_label = create_label(
417
+ text = text,
418
418
  font_family = label_font_family,
419
419
  font_size = label_font_size,
420
420
  font_color = label_font_color,
@@ -424,12 +424,12 @@ def create_confirmation_message_box(
424
424
  border_color = label_border_color,
425
425
  border_radius = label_border_radius
426
426
  )
427
- message_layout.addWidget(message_label)
427
+ text_layout.addWidget(text_label)
428
428
  buttons_layout = QHBoxLayout()
429
429
  main_layout.addLayout(buttons_layout)
430
430
  buttons_layout.setSpacing(button_spacing)
431
431
  confirm_button = create_button(
432
- message = "Sí",
432
+ text = "Sí",
433
433
  font_family = button_font_family,
434
434
  font_size = button_font_size,
435
435
  font_color = button_font_color,
@@ -452,7 +452,7 @@ def create_confirmation_message_box(
452
452
  buttons_layout.addWidget(confirm_button)
453
453
  confirm_button.clicked.connect(confirm_message_box.accept)
454
454
  decline_button = create_button(
455
- message = "No",
455
+ text = "No",
456
456
  font_family = button_font_family,
457
457
  font_size = button_font_size,
458
458
  font_color = button_font_color,
@@ -509,7 +509,7 @@ def confirm_exit(
509
509
  button_disabled_border_color = "#4a4a4a"
510
510
  ):
511
511
  confirmation_message_box = create_confirmation_message_box(
512
- message = "¿Está seguro de querer salir del programa?",
512
+ text = "¿Está seguro de querer salir del programa?",
513
513
  background_color = background_color,
514
514
  border_width = border_width,
515
515
  border_color = border_color,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gui_utilities
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: Librería de utilidades gráficas en PyQt6
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -1,10 +1,8 @@
1
1
  [project]
2
2
  name = "gui_utilities"
3
- version = "1.0.0"
3
+ version = "1.0.1"
4
4
  description = "Librería de utilidades gráficas en PyQt6"
5
- authors = [
6
- {name = "Guido Iván Gross", email = "grossguidoivan@gmail.com"}
7
- ]
5
+ authors = [{name = "Guido Iván Gross", email = "grossguidoivan@gmail.com"}]
8
6
  requires-python = ">=3.8"
9
7
  dependencies = ["PyQt6"]
10
8
 
File without changes
File without changes
File without changes