graphviz-code-viewer 0.1.2__tar.gz → 0.1.4__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.
Files changed (29) hide show
  1. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/PKG-INFO +6 -6
  2. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/README.md +2 -2
  3. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/about.py +4 -4
  4. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/desktop.py +3 -2
  5. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/document-open.png +0 -0
  6. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/download-green.png +0 -0
  7. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/download.png +0 -0
  8. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/emote-love.png +0 -0
  9. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/image.png +0 -0
  10. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/status_help.png +0 -0
  11. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/system-run.png +0 -0
  12. graphviz_code_viewer-0.1.4/graphviz_code_viewer/icons/text-configure.png +0 -0
  13. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/program.py +34 -14
  14. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer.egg-info/PKG-INFO +6 -6
  15. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer.egg-info/SOURCES.txt +8 -1
  16. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/pyproject.toml +5 -5
  17. graphviz_code_viewer-0.1.2/graphviz_code_viewer/program.old.py +0 -12
  18. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/LICENSE +0 -0
  19. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/__init__.py +0 -0
  20. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/icons/logo.png +0 -0
  21. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/modules/__init__.py +0 -0
  22. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/modules/configure.py +0 -0
  23. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/modules/resources.py +0 -0
  24. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer/modules/wabout.py +0 -0
  25. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer.egg-info/dependency_links.txt +0 -0
  26. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer.egg-info/entry_points.txt +0 -0
  27. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer.egg-info/requires.txt +0 -0
  28. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/graphviz_code_viewer.egg-info/top_level.txt +0 -0
  29. {graphviz_code_viewer-0.1.2 → graphviz_code_viewer-0.1.4}/setup.cfg +0 -0
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphviz_code_viewer
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Program to edit and view Graphviz code.
5
5
  Author-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
6
6
  Maintainer-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
7
7
  License-Expression: GPL-3.0-only WITH Classpath-exception-2.0 OR BSD-3-Clause
8
- Project-URL: Bug Reports, https://github.com/trucomanx/GraphvizCodeViewer/issues
8
+ Project-URL: Bug Reports, https://github.com/trucomanx-desktop/GraphvizCodeViewer/issues
9
9
  Project-URL: Funding, https://trucomanx.github.io/en/funding.html
10
- Project-URL: Documentation, https://github.com/trucomanx/GraphvizCodeViewer/tree/main/doc
11
- Project-URL: Source, https://github.com/trucomanx/GraphvizCodeViewer
10
+ Project-URL: Documentation, https://github.com/trucomanx-desktop/GraphvizCodeViewer/tree/main/doc
11
+ Project-URL: Source, https://github.com/trucomanx-desktop/GraphvizCodeViewer
12
12
  Keywords: writing,translate
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Operating System :: OS Independent
@@ -23,7 +23,7 @@ Dynamic: license-file
23
23
 
24
24
  Program to edit and view Graphviz code.
25
25
 
26
- ![logo](https://raw.githubusercontent.com/trucomanx/GraphvizCodeViewer/main/screenshot.png)
26
+ ![logo](https://raw.githubusercontent.com/trucomanx-desktop/GraphvizCodeViewer/main/screenshot.png)
27
27
 
28
28
  ## 1. Installing
29
29
 
@@ -45,7 +45,7 @@ graphviz-code-viewer
45
45
  ```
46
46
  ## 2. More information
47
47
 
48
- If you want more information go to [doc](https://github.com/trucomanx/GraphvizCodeViewer/blob/main/doc) directory.
48
+ If you want more information go to [doc](https://github.com/trucomanx-desktop/GraphvizCodeViewer/blob/main/doc) directory.
49
49
 
50
50
  ## 3. Buy me a coffee
51
51
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Program to edit and view Graphviz code.
4
4
 
5
- ![logo](https://raw.githubusercontent.com/trucomanx/GraphvizCodeViewer/main/screenshot.png)
5
+ ![logo](https://raw.githubusercontent.com/trucomanx-desktop/GraphvizCodeViewer/main/screenshot.png)
6
6
 
7
7
  ## 1. Installing
8
8
 
@@ -24,7 +24,7 @@ graphviz-code-viewer
24
24
  ```
25
25
  ## 2. More information
26
26
 
27
- If you want more information go to [doc](https://github.com/trucomanx/GraphvizCodeViewer/blob/main/doc) directory.
27
+ If you want more information go to [doc](https://github.com/trucomanx-desktop/GraphvizCodeViewer/blob/main/doc) directory.
28
28
 
29
29
  ## 3. Buy me a coffee
30
30
 
@@ -1,12 +1,12 @@
1
1
  # about.py
2
2
 
3
- __version__ = "0.1.2"
3
+ __version__ = "0.1.4"
4
4
  __package__ = "graphviz_code_viewer"
5
5
  __program_name__ = "graphviz-code-viewer"
6
6
  __author__ = "Fernando Pujaico Rivera"
7
7
  __email__ = "fernando.pujaico.rivera@gmail.com"
8
8
  __description__ = "Program to edit and view Graphviz code."
9
- __url_source__ = "https://github.com/trucomanx/GraphvizCodeViewer"
10
- __url_doc__ = "https://github.com/trucomanx/GraphvizCodeViewer/tree/main/doc"
9
+ __url_source__ = "https://github.com/trucomanx-desktop/GraphvizCodeViewer"
10
+ __url_doc__ = "https://github.com/trucomanx-desktop/GraphvizCodeViewer/tree/main/doc"
11
11
  __url_funding__ = "https://trucomanx.github.io/en/funding.html"
12
- __url_bugs__ = "https://github.com/trucomanx/GraphvizCodeViewer/issues"
12
+ __url_bugs__ = "https://github.com/trucomanx-desktop/GraphvizCodeViewer/issues"
@@ -16,7 +16,7 @@ def update_desktop_database(desktop_path):
16
16
  except FileNotFoundError:
17
17
  print("The command 'update-desktop-database' was not found. Verify that the package 'desktop-file-utils' is installed.")
18
18
 
19
- def create_desktop_file(desktop_path, overwrite=False):
19
+ def create_desktop_file(desktop_path, overwrite=False, extras=""):
20
20
  base_dir_path = os.path.dirname(os.path.abspath(__file__))
21
21
  icon_path = os.path.join(base_dir_path, 'icons', 'logo.png')
22
22
 
@@ -25,7 +25,7 @@ def create_desktop_file(desktop_path, overwrite=False):
25
25
  desktop_entry = f"""[Desktop Entry]
26
26
  Name={about.__program_name__}
27
27
  Comment={about.__description__}
28
- Exec={script_path}
28
+ Exec={script_path} %f
29
29
  Terminal=false
30
30
  Type=Application
31
31
  Icon={icon_path}
@@ -34,6 +34,7 @@ Categories=Education;ResearchTools;
34
34
  Keywords=organizer;python;
35
35
  Encoding=UTF-8
36
36
  StartupWMClass={about.__package__}
37
+ {extras}
37
38
  """
38
39
  path = os.path.expanduser(os.path.join(desktop_path,f"{about.__program_name__}.desktop"))
39
40
 
@@ -459,31 +459,41 @@ class MainWindow(QMainWindow):
459
459
 
460
460
 
461
461
  # Compile
462
- compile_action = QAction(QIcon.fromTheme("media-playback-start"),CONFIG["action_compile"], self)
462
+ compile_action = QAction( QIcon(resource_path("icons", "system-run.png")),
463
+ CONFIG["action_compile"],
464
+ self)
463
465
  compile_action.setToolTip(CONFIG["action_compile_tooltip"])
464
466
  compile_action.triggered.connect(self.compile_dot)
465
467
  toolbar.addAction(compile_action)
466
468
 
467
469
  # Load
468
- load_action = QAction(QIcon.fromTheme("document-open"),CONFIG["action_open"], self)
470
+ load_action = QAction( QIcon(resource_path("icons", "document-open.png")),
471
+ CONFIG["action_open"],
472
+ self)
469
473
  load_action.setToolTip(CONFIG["action_open_tooltip"])
470
474
  load_action.triggered.connect(lambda: self.load_dot(filepath=""))
471
475
  toolbar.addAction(load_action)
472
476
 
473
477
  # Save
474
- save_action = QAction(QIcon.fromTheme("document-save"),CONFIG["action_save"], self)
478
+ save_action = QAction( QIcon(resource_path("icons", "download.png")),
479
+ CONFIG["action_save"],
480
+ self)
475
481
  save_action.setToolTip(CONFIG["action_save_tooltip"])
476
482
  save_action.triggered.connect(lambda: self.save_dot(from_input=True,exist_ok=True))
477
483
  toolbar.addAction(save_action)
478
484
 
479
485
  # Save as
480
- saveas_action = QAction(QIcon.fromTheme("document-save-as"),CONFIG["action_saveas"], self)
486
+ saveas_action = QAction(QIcon(resource_path("icons", "download-green.png")),
487
+ CONFIG["action_saveas"],
488
+ self)
481
489
  saveas_action.setToolTip(CONFIG["action_saveas_tooltip"])
482
490
  saveas_action.triggered.connect(lambda: self.save_dot(from_input=False,exist_ok=False))
483
491
  toolbar.addAction(saveas_action)
484
492
 
485
493
  # Save Image
486
- save_image_action = QAction(QIcon.fromTheme("image-x-generic"), CONFIG["action_saveimg"], self)
494
+ save_image_action = QAction(QIcon(resource_path("icons", "image.png")),
495
+ CONFIG["action_saveimg"],
496
+ self)
487
497
  save_image_action.setToolTip(CONFIG["action_saveimg_tooltip"])
488
498
  save_image_action.triggered.connect(self.save_image)
489
499
  toolbar.addAction(save_image_action)
@@ -495,25 +505,33 @@ class MainWindow(QMainWindow):
495
505
  toolbar.addWidget(spacer)
496
506
 
497
507
  #
498
- self.configure_editor_action = QAction(QIcon.fromTheme("document-properties"), CONFIG["action_configure_editor"], self)
508
+ self.configure_editor_action = QAction( QIcon(resource_path("icons", "text-configure.png")),
509
+ CONFIG["action_configure_editor"],
510
+ self)
499
511
  self.configure_editor_action.setToolTip(CONFIG["action_configure_editor_tooltip"])
500
512
  self.configure_editor_action.triggered.connect(self.open_configure_editor)
501
513
  toolbar.addAction(self.configure_editor_action)
502
514
 
503
515
  #
504
- self.configure_action = QAction(QIcon.fromTheme("document-properties"), CONFIG["action_configure_window"], self)
516
+ self.configure_action = QAction(QIcon(resource_path("icons", "text-configure.png")),
517
+ CONFIG["action_configure_window"],
518
+ self)
505
519
  self.configure_action.setToolTip(CONFIG["action_configure_window_tooltip"])
506
520
  self.configure_action.triggered.connect(self.open_configure_window)
507
521
  toolbar.addAction(self.configure_action)
508
522
 
509
523
  #
510
- self.about_action = QAction(QIcon.fromTheme("help-about"), CONFIG["action_about"], self)
524
+ self.about_action = QAction(QIcon(resource_path("icons", "status_help.png")),
525
+ CONFIG["action_about"],
526
+ self)
511
527
  self.about_action.setToolTip(CONFIG["action_about_tooltip"])
512
528
  self.about_action.triggered.connect(self.open_about)
513
529
  toolbar.addAction(self.about_action)
514
530
 
515
531
  # Coffee
516
- self.coffee_action = QAction(QIcon.fromTheme("emblem-favorite"), CONFIG["action_coffee"], self)
532
+ self.coffee_action = QAction( QIcon(resource_path("icons", "emote-love.png")),
533
+ CONFIG["action_coffee"],
534
+ self)
517
535
  self.coffee_action.setToolTip(CONFIG["action_coffee_tooltip"])
518
536
  self.coffee_action.triggered.connect(self.on_coffee_action_click)
519
537
  toolbar.addAction(self.coffee_action)
@@ -695,22 +713,24 @@ class MainWindow(QMainWindow):
695
713
  def main():
696
714
  signal.signal(signal.SIGINT, signal.SIG_DFL)
697
715
 
716
+ extras="MimeType=text/vnd.graphviz;"
717
+
698
718
  create_desktop_directory()
699
719
  create_desktop_menu()
700
- create_desktop_file('~/.local/share/applications')
720
+ create_desktop_file('~/.local/share/applications', extras=extras)
701
721
 
702
722
  filepath = ""
703
723
  if(len(sys.argv)==2):
704
724
  if sys.argv[1] == "--autostart":
705
725
  create_desktop_directory(overwrite = True)
706
726
  create_desktop_menu(overwrite = True)
707
- create_desktop_file('~/.config/autostart', overwrite=True)
727
+ create_desktop_file('~/.config/autostart', overwrite=True, extras=extras)
708
728
  return
709
729
 
710
730
  if sys.argv[1] == "--applications":
711
731
  create_desktop_directory(overwrite = True)
712
732
  create_desktop_menu(overwrite = True)
713
- create_desktop_file('~/.local/share/applications', overwrite=True)
733
+ create_desktop_file('~/.local/share/applications', overwrite=True, extras=extras)
714
734
  return
715
735
 
716
736
  if os.path.exists(sys.argv[1]):
@@ -720,12 +740,12 @@ def main():
720
740
  if sys.argv[n] == "--autostart":
721
741
  create_desktop_directory(overwrite = True)
722
742
  create_desktop_menu(overwrite = True)
723
- create_desktop_file('~/.config/autostart', overwrite=True)
743
+ create_desktop_file('~/.config/autostart', overwrite=True, extras=extras)
724
744
  return
725
745
  if sys.argv[n] == "--applications":
726
746
  create_desktop_directory(overwrite = True)
727
747
  create_desktop_menu(overwrite = True)
728
- create_desktop_file('~/.local/share/applications', overwrite=True)
748
+ create_desktop_file('~/.local/share/applications', overwrite=True, extras=extras)
729
749
  return
730
750
 
731
751
  app = QApplication(sys.argv)
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphviz_code_viewer
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: Program to edit and view Graphviz code.
5
5
  Author-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
6
6
  Maintainer-email: Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
7
7
  License-Expression: GPL-3.0-only WITH Classpath-exception-2.0 OR BSD-3-Clause
8
- Project-URL: Bug Reports, https://github.com/trucomanx/GraphvizCodeViewer/issues
8
+ Project-URL: Bug Reports, https://github.com/trucomanx-desktop/GraphvizCodeViewer/issues
9
9
  Project-URL: Funding, https://trucomanx.github.io/en/funding.html
10
- Project-URL: Documentation, https://github.com/trucomanx/GraphvizCodeViewer/tree/main/doc
11
- Project-URL: Source, https://github.com/trucomanx/GraphvizCodeViewer
10
+ Project-URL: Documentation, https://github.com/trucomanx-desktop/GraphvizCodeViewer/tree/main/doc
11
+ Project-URL: Source, https://github.com/trucomanx-desktop/GraphvizCodeViewer
12
12
  Keywords: writing,translate
13
13
  Classifier: Programming Language :: Python :: 3
14
14
  Classifier: Operating System :: OS Independent
@@ -23,7 +23,7 @@ Dynamic: license-file
23
23
 
24
24
  Program to edit and view Graphviz code.
25
25
 
26
- ![logo](https://raw.githubusercontent.com/trucomanx/GraphvizCodeViewer/main/screenshot.png)
26
+ ![logo](https://raw.githubusercontent.com/trucomanx-desktop/GraphvizCodeViewer/main/screenshot.png)
27
27
 
28
28
  ## 1. Installing
29
29
 
@@ -45,7 +45,7 @@ graphviz-code-viewer
45
45
  ```
46
46
  ## 2. More information
47
47
 
48
- If you want more information go to [doc](https://github.com/trucomanx/GraphvizCodeViewer/blob/main/doc) directory.
48
+ If you want more information go to [doc](https://github.com/trucomanx-desktop/GraphvizCodeViewer/blob/main/doc) directory.
49
49
 
50
50
  ## 3. Buy me a coffee
51
51
 
@@ -4,7 +4,6 @@ pyproject.toml
4
4
  graphviz_code_viewer/__init__.py
5
5
  graphviz_code_viewer/about.py
6
6
  graphviz_code_viewer/desktop.py
7
- graphviz_code_viewer/program.old.py
8
7
  graphviz_code_viewer/program.py
9
8
  graphviz_code_viewer.egg-info/PKG-INFO
10
9
  graphviz_code_viewer.egg-info/SOURCES.txt
@@ -12,7 +11,15 @@ graphviz_code_viewer.egg-info/dependency_links.txt
12
11
  graphviz_code_viewer.egg-info/entry_points.txt
13
12
  graphviz_code_viewer.egg-info/requires.txt
14
13
  graphviz_code_viewer.egg-info/top_level.txt
14
+ graphviz_code_viewer/icons/document-open.png
15
+ graphviz_code_viewer/icons/download-green.png
16
+ graphviz_code_viewer/icons/download.png
17
+ graphviz_code_viewer/icons/emote-love.png
18
+ graphviz_code_viewer/icons/image.png
15
19
  graphviz_code_viewer/icons/logo.png
20
+ graphviz_code_viewer/icons/status_help.png
21
+ graphviz_code_viewer/icons/system-run.png
22
+ graphviz_code_viewer/icons/text-configure.png
16
23
  graphviz_code_viewer/modules/__init__.py
17
24
  graphviz_code_viewer/modules/configure.py
18
25
  graphviz_code_viewer/modules/resources.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "graphviz_code_viewer"
7
- version = "0.1.2"
7
+ version = "0.1.4"
8
8
  description = "Program to edit and view Graphviz code."
9
9
  readme = "README.md"
10
10
  authors = [{name = "Fernando Pujaico Rivera", email = "fernando.pujaico.rivera@gmail.com"}]
@@ -23,10 +23,10 @@ dependencies = [
23
23
  ]
24
24
 
25
25
  [project.urls]
26
- "Bug Reports" = "https://github.com/trucomanx/GraphvizCodeViewer/issues"
26
+ "Bug Reports" = "https://github.com/trucomanx-desktop/GraphvizCodeViewer/issues"
27
27
  "Funding" = "https://trucomanx.github.io/en/funding.html"
28
- "Documentation" = "https://github.com/trucomanx/GraphvizCodeViewer/tree/main/doc"
29
- "Source" = "https://github.com/trucomanx/GraphvizCodeViewer"
28
+ "Documentation" = "https://github.com/trucomanx-desktop/GraphvizCodeViewer/tree/main/doc"
29
+ "Source" = "https://github.com/trucomanx-desktop/GraphvizCodeViewer"
30
30
 
31
31
  [project.scripts]
32
32
  "graphviz-code-viewer" = "graphviz_code_viewer.program:main"
@@ -35,4 +35,4 @@ dependencies = [
35
35
  packages = ["graphviz_code_viewer", "graphviz_code_viewer.modules"]
36
36
 
37
37
  [tool.setuptools.package-data]
38
- "graphviz_code_viewer" = ["icons/logo.png"]
38
+ "graphviz_code_viewer" = ["icons/*.png"]
@@ -1,12 +0,0 @@
1
- import os
2
-
3
- import graphviz_code_viewer.about as about
4
- import graphviz_code_viewer.modules.configure as configure
5
-
6
- # Caminho para o arquivo de configuração
7
- CONFIG_PATH = os.path.join(os.path.expanduser("~"),".config",about.__package__,"config.json")
8
-
9
- configure.verify_default_config(CONFIG_PATH, default_content={"casa":"verde"})
10
-
11
- CONFIG=configure.load_config(CONFIG_PATH)
12
- print("Hola!")