EntityScript

Draft 1.01:
Index







Sections: Status -> Approved

1.) EntityScript™ Overview - Overview of the project

2.) .entity/.ds Lookups - Overview of basic .entity and .ds file relationships. An overview of each file.

3.) Special File Types - Overview of special types of methods, files, and types in C.ORE™

4.) Log File Types - Overview of Logging within C.ORE™

5.) Using OpenPackager™ - Overview of the OpenPackager™ project and details regarding using the sub-system for organizing the base system and addons.

6.) Locations - Overview of various parts of the IPDVC™ file system

7.) System Audits - Overview of various audit mechanisms present in C.ORE™ and how to use them.

8.) C.ORE™ Scripts - Overview of scripts that run in C.ORE™, the purpose they have, overview of some scripting philosophy, and some usage examples.

9.) Startup - Step-by-step process of startup routines and how to extend them

10.) C.ORE™: AirEP™ file system (Access Identity Ring Entertainment Platform: AirEP™ - Understand more about the Access, Identity, Ring

11.) Keys: Each of the built-in keys that can be used to retrieve meta-information in C.ORE™

12.) How-to: Additional Notes

13.) Moderation: Basic moderation principles

14.) Social Pledge: Basic social-pledge for your interface and who you interact with

15.) Disclaimers: Basic recommendations for your interface and dealing with various types of commerce

16.) Additional Resources: Dig deeper into the technical stack, program methods, variables, and other happenings within CORE.HOST™

StandardExtension03




"""
Copyright (c) 2020 New Entity Operations Inc.

ALL RIGHTS RESERVED

A 'ResourcePool' is established and localized here too.

In this POOL-> _OPENPACKAGER

"""
## Imports: Standard
import tkinter as ITL
from tkinter import ttk, scrolledtext, _tkinter
## Imports: Community
from PIL import (
    Image, ImageTk
)
## Imports: Custom
# If it's a standalone, switch this to core_openpackager
# If this is bundled into a run routine, make it .core_openpackager
from core_openpackager import (
    # OpenPackager
    ARRAY_ENTRY_OPENPACKAGER_OPTION_1,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_2,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_3,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_4,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_5,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_6,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_7,
    ARRAY_ENTRY_OPENPACKAGER_OPTION_8,
    # OpenPackager: Extra
    ARRAY_ENTRY_OPENPACKAGER_EXTRA_OPTION_1,
    # table
    SLUG_FULL_OPENPACKAGER,
    SLUG_FULL_OPENPACKAGER_EXTRA
)

## Import: Resource Pool
from .ResourcePool import POOL_OPENPACKAGER 

## Make local Pool Values
FRAME_TITLE_OPENPACKAGER = \
POOL_OPENPACKAGER.FRAME_TITLE_OPENPACKAGER
OPENPACKAGER_ID_OPENPACKAGER = \
POOL_OPENPACKAGER.OPENPACKAGER_ID_OPENPACKAGER

print("--------------------")
print("OPENPACKAGER-> PACKAGES LOADED-> BY ID")
print("Package 1: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_1)
print("Package 2: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_2)
print("Package 3: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_3)
print("Package 4: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_4)
print("Package 5: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_5)
print("Package 6: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_6)
print("Package 7: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_7)
print("Package 8: "+ARRAY_ENTRY_OPENPACKAGER_OPTION_8)
print("Package Extra 1: "+ARRAY_ENTRY_OPENPACKAGER_EXTRA_OPTION_1)
print("Slug-> OPENPACKAGER: "+SLUG_FULL_OPENPACKAGER)
print("Slug-> OPENPACKAGER EXTRA:"+SLUG_FULL_OPENPACKAGER_EXTRA)
print("--------------------")

class ENTITY_CONSTRUCT_SUB_OPENPACKAGER():
    def __init__(self):
        """
        ENTITY_CONSTRUCT_SUB() will Set all baseline functions required to
        operate this 'Sub-Entity'
        SDV (Standard Document Viewer)
        """
        #Seperate Wrapper Mode
        self.OPENPACKAGER = ITL.Tk()
        self.OPENPACKAGER.title(FRAME_TITLE_OPENPACKAGER+"  : "+\
            OPENPACKAGER_ID_OPENPACKAGER
        )
        self.setup_OPENPACKAGER()
        # Uncomment if the module is stand-alone
        #OPENPACKAGER.mainloop()

    def setup_OPENPACKAGER(self):
     style = ttk.Style()
     style.theme_settings("default",
          {"TNotebook.Tab": {"configure": {"padding": [30, 30]}}}
     )
     ## FRAMES: Default
     LABEL_EXPANDER_FRAME_DEFAULT = ttk.Label(self.OPENPACKAGER,
      text="Default:"
     )
     LABEL_EXPANDER_FRAME_DEFAULT.place(x=20, y=20)
     # Frame Default: BrowseMeh
     EXPANDER_FRAME_DEFAULT_BROWSEMEH = ITL.Frame(self.OPENPACKAGER,
      bg='Yellow',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_DEFAULT_BROWSEMEH.place(x=20, y=60)

     LABEL_EXPANDER_FRAME_DEFAULT_BROWSEMEH = ttk.Label(self.OPENPACKAGER,
      text="BrowseMeh"
     )
     LABEL_EXPANDER_FRAME_DEFAULT_BROWSEMEH.place(x=40, y=280)

     # Frame Default: RemindMe
     EXPANDER_FRAME_DEFAULT_REMINDME = ITL.Frame(self.OPENPACKAGER,
      bg='Blue',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_DEFAULT_REMINDME.place(x=250, y=60)
     LABEL_EXPANDER_FRAME_DEFAULT_REMINDME = ttk.Label(self.OPENPACKAGER,
      text="RemindMe"
     )
     LABEL_EXPANDER_FRAME_DEFAULT_REMINDME.place(x=290, y=280)

     LABEL_EXPANDER_FRAME_BASICS = ttk.Label(self.OPENPACKAGER,
      text="Basics:"
     )
     LABEL_EXPANDER_FRAME_BASICS.place(x=20, y=400)

     # Frame Default: Basics-> Access
     EXPANDER_FRAME_BASICS_ACCESS = ITL.Frame(self.OPENPACKAGER,
      bg='Green',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_BASICS_ACCESS.place(x=20, y=460)

     LABEL_EXPANDER_FRAME_BASICS_ACCESS = ttk.Label(self.OPENPACKAGER,
      text="Access"
     )
     LABEL_EXPANDER_FRAME_BASICS_ACCESS.place(x=40, y=680)

     # Frame Default: Basics-> Identity
     EXPANDER_FRAME_BASICS_IDENTITY = ITL.Frame(self.OPENPACKAGER,
      bg='Blue',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_BASICS_IDENTITY.place(x=250, y=460)
     LABEL_EXPANDER_FRAME_BASICS_IDENTITY = ttk.Label(self.OPENPACKAGER,
      text="Identity"
     )
     LABEL_EXPANDER_FRAME_BASICS_IDENTITY.place(x=290, y=680)

     # Frame Default: Basics-> Ring
     EXPANDER_FRAME_BASICS_RING = ITL.Frame(self.OPENPACKAGER,
      bg='Red',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_BASICS_RING.place(x=500, y=460)
     LABEL_EXPANDER_FRAME_BASICS_RING = ttk.Label(self.OPENPACKAGER,
      text="Ring"
     )
     LABEL_EXPANDER_FRAME_BASICS_RING.place(x=520, y=680)
     # Frame Default: Basics-> Communication
     LABEL_EXPANDER_FRAME_COMMUNICATION = ttk.Label(self.OPENPACKAGER,
      text="Communication:"
     )
     LABEL_EXPANDER_FRAME_COMMUNICATION.place(x=20, y=800)
     # Frame Default: Basics-> Communication: Overview
     EXPANDER_FRAME_COMMUNICATION_OVERVIEW = ITL.Frame(self.OPENPACKAGER,
      bg='Green',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_COMMUNICATION_OVERVIEW.place(x=20, y=840)
     LABEL_EXPANDER_FRAME_COMMUNICATION_OVERVIEW = ttk.Label(self.OPENPACKAGER,
      text="Overview"
     )
     LABEL_EXPANDER_FRAME_COMMUNICATION_OVERVIEW.place(x=40, y=1050)
     # Expanded Frames: Add-on Software
     LABEL_EXPANDER_ADDON_SOFTWARE = ttk.Label(self.OPENPACKAGER,
      text="Add-on Software:"
     )
     LABEL_EXPANDER_ADDON_SOFTWARE.place(x=20, y=1140)
     # Expanded Frames:  Add-on Software-> EventLolli
     EXPANDER_FRAME_ADDON_SOFTWARE_EVENTLOLLI = ITL.Frame(self.OPENPACKAGER,
      bg='Black',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_ADDON_SOFTWARE_EVENTLOLLI.place(x=20, y=1200)
     LABEL_EXPANDER_ADDON_SOFTWARE_EVENTLOLLI = ttk.Label(self.OPENPACKAGER,
      text="EventLolli"
     )
     LABEL_EXPANDER_ADDON_SOFTWARE_EVENTLOLLI.place(x=40, y=1420)
     # Frame Default: Basics-> Tools
     LABEL_EXPANDER_FRAME_TOOLS = ttk.Label(self.OPENPACKAGER,
      text="Tools:"
     )
     LABEL_EXPANDER_FRAME_TOOLS.place(x=20, y=1500)
     # Frame Default: Basics-> Tools: Active
     EXPANDER_FRAME_TOOLS_ACTIVE = ITL.Frame(self.OPENPACKAGER,
      bg='Blue',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_TOOLS_ACTIVE.place(x=20, y=1580)
     LABEL_EXPANDER_FRAME_TOOLS_ACTIVE = ttk.Label(self.OPENPACKAGER,
      text="Active"
     )
     LABEL_EXPANDER_FRAME_TOOLS_ACTIVE.place(x=40, y=1800)

     # Frame Default: Basics-> Documentation
     LABEL_EXPANDER_FRAME_DOCUMENTATION = ttk.Label(self.OPENPACKAGER,
      text="Documentation:"
     )
     LABEL_EXPANDER_FRAME_DOCUMENTATION.place(x=2500, y=1500)
     # Frame Default: Basics-> Documentation: C.ORE
     EXPANDER_FRAME_DOCUMENTATION_CORE = ITL.Frame(self.OPENPACKAGER,
      bg='Red',
      width='200',
      height='200'
     )
     EXPANDER_FRAME_DOCUMENTATION_CORE.place(x=2500, y=1580)
     LABEL_EXPANDER_DOCUMENTATION_CORE = ttk.Label(self.OPENPACKAGER,
      text="C.ORE DOCS"
     )
     LABEL_EXPANDER_DOCUMENTATION_CORE.place(x=2520, y=1800)

     ####

     class OpenPackagerImage:
      """
      The default image size fore each OpenPackager slug
      """
      Height =  200
      Width = 200

     EXPANDER_FRAME_IN_FOCUS_CORE = ITL.Frame(self.OPENPACKAGER,
      bg='Red',
      width=int(float(OpenPackagerImage.Width*2.5)),
      height=int(float(OpenPackagerImage.Height*2.5))
     )
     EXPANDER_FRAME_IN_FOCUS_CORE.place(x=2500, y=100)
     LABEL_EXPANDER_IN_FOCUS_CORE = ttk.Label(self.OPENPACKAGER,
      text="OPENPACKAGER: ACTIVE"
     )
     LABEL_EXPANDER_IN_FOCUS_CORE.place(x=2520, y=700)

     # Active 'activity' definitions
     FES = ttk.Style()

     FE_SELECTOR = ITL.StringVar()
     FE_SELECTOR = ttk.Combobox(self.OPENPACKAGER,
      width=18,
      textvariable=FE_SELECTOR,
      state='readonly'
     )
     FE_SELECTOR['values'] = (
      'Red', 'Black', 'White'
     )
     FE_SELECTOR.place(x=3200, y=1700)
     FE_SELECTOR.current(0)

     class SETTINGS:
      def FE_SETTER(event=None):
       FE_SELECTOR_PICK = FE_SELECTOR.get()
       if FE_SELECTOR_PICK == 'Red':
        FES.configure(self.OPENPACKAGER, background='red')
        self.OPENPACKAGER.configure()
        print("Changed theme to Red")
       elif FE_SELECTOR_PICK == 'Black':
        FES.configure(self.OPENPACKAGER, background='black')
        print("Changed theme to Black")
        self.OPENPACKAGER.configure()
       elif FE_SELECTOR_PICK == 'White':
        FES.configure(self.OPENPACKAGER, background='white')
        print("Change theme to White")
        self.OPENPACKAGER.configure()
     FE_SELECTOR.bind("<>",
      SETTINGS.FE_SETTER
     )

     #**********************************************************#
     # START: SPECIAL 2 - Run OpenPackager                      #
     #**********************************************************#
     print(
      "---------- START: SPECIAL 2 - Run OpenPackager ----------\n"
     )

     class OpenPackager_additional_methods:
      def resized_image_width(ImageAlpha):
       HEIGHT_ORIGINAL = ImageAlpha.size[1]
       WIDTH_ORIGINAL =  ImageAlpha.size[0]
       height = OpenPackager_additional_methods.window_height_logic(ImageAlpha)
       h_percentage = float(height) / float(HEIGHT_ORIGINAL)
       w_size = float(WIDTH_ORIGINAL) * float(h_percentage)
       return(int(w_size))

      def resized_image_width_main(ImageAlpha):
       HEIGHT_ORIGINAL = ImageAlpha.size[1]
       WIDTH_ORIGINAL =  ImageAlpha.size[0]
       height = OpenPackager_additional_methods.window_height_logic_main(ImageAlpha)
       h_percentage = float(height) / float(HEIGHT_ORIGINAL)
       w_size = float(WIDTH_ORIGINAL) * float(h_percentage)
       return(int(w_size))

      def window_height_logic(ImageAlpha):
       """
       Get the height based off of the frame height
       """
       return(int(float(OpenPackagerImage.Height)))

      def window_height_logic_main(ImageAlpha):
       """
       Get the height based off of the frame height
       """
       return(int(float(OpenPackagerImage.Height*2.5)))

      def window_height_logic_tab(ImageAlpha):
       """
       Get the height based off of the frame height
       """
       return(int(float(OpenPackagerImage.Height*0.1)))

     # Run OpenPackager
     class OpenPackager:
      def get_DETAILS_ARRAY(OPENPACKAGER_ID):
       with open(SLUG_FULL_OPENPACKAGER, 'r') as OPENPACKAGER_DETAILS_ARRAY:
        for line in OPENPACKAGER_DETAILS_ARRAY:
         if OPENPACKAGER_ID in line:
          print("Located: "+line)
          ARRAY_SLUG = line

          if ARRAY_ENTRY_OPENPACKAGER_OPTION_1 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print("The Package Array System was started-> Item #1 building: "+z[0])
           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           # Debug que to see if you're getting a photo
           # print(type(ImageSmallOpenPackager))
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_DOCUMENTATION_CORE,
             image=OpenPackagerImage
             )
            print("Package Array: Opened #1")
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")
           
          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_2 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_BASICS_ACCESS,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_3 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_BASICS_IDENTITY,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_4 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_BASICS_RING,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_5 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_DEFAULT_BROWSEMEH,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_6 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_DEFAULT_REMINDME,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_7 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_COMMUNICATION_OVERVIEW,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          elif ARRAY_ENTRY_OPENPACKAGER_OPTION_8 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_TOOLS_ACTIVE,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width_main(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic_main(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(EXPANDER_FRAME_IN_FOCUS_CORE,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(image=OpenPackagerImage)
            LabelOpenPackagerImage.image = OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          else:
           pass
         else:
          pass

     EXPANDER_FRAME_IN_FOCUS_CORE.place(x=2500, y=100)
     LABEL_EXPANDER_IN_FOCUS_CORE = ttk.Label(self.OPENPACKAGER,
      text="OPENPACKAGER: ACTIVE"
     )

     # Run OpenPackager Extra
     class OpenPackagerExtra:
      def get_DETAILS_ARRAY(OPENPACKAGER_ID):
       with open(SLUG_FULL_OPENPACKAGER_EXTRA,
        'r') as OPENPACKAGER_EXTRA_DETAILS_ARRAY:
        for line in OPENPACKAGER_EXTRA_DETAILS_ARRAY:
         if OPENPACKAGER_ID in line:
          print("Located Extra: "+line)
          ARRAY_SLUG = line

          if ARRAY_ENTRY_OPENPACKAGER_EXTRA_OPTION_1 in ARRAY_SLUG:
           z = ARRAY_SLUG.split('"')[-2:-1]
           print(z[0])

           ImageSmallOpenPackager = Image.open(
            z[0]
           )
           ImageAlpha = ImageSmallOpenPackager
           ImageSized = ImageSmallOpenPackager.resize((
            OpenPackager_additional_methods.resized_image_width(ImageAlpha),
            OpenPackager_additional_methods.window_height_logic(ImageAlpha)),
            Image.ANTIALIAS
           )
           OpenPackagerImage = ImageTk.PhotoImage(ImageSized)
           try:
            LabelOpenPackagerImage = ITL.Label(
             EXPANDER_FRAME_ADDON_SOFTWARE_EVENTLOLLI,
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.place(x=0, y=0)
            LabelOpenPackagerImage.config(
             image=OpenPackagerImage
            )
            LabelOpenPackagerImage.image = \
             OpenPackagerImage
           except:
            _tkinter.TclError
            print("OpenPackager: No meta-image loaded...")

          else:
           pass
         else:
          pass

     def get_DEFAULT_OPENPACKAGER_IMAGES():
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_1
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_2
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_3
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_4
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_5
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_6
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_7
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_OPTION_8
      OpenPackager.get_DETAILS_ARRAY(OPENPACKAGER_ID)

     def get_DEFAULT_OPENPACKAGER_IMAGES_EXTRA():
      OPENPACKAGER_ID=ARRAY_ENTRY_OPENPACKAGER_EXTRA_OPTION_1
      OpenPackagerExtra.get_DETAILS_ARRAY(OPENPACKAGER_ID)

     ## Runners
     get_DEFAULT_OPENPACKAGER_IMAGES()
     get_DEFAULT_OPENPACKAGER_IMAGES_EXTRA()
     print(
      "---------- STOP: SPECIAL 2 - Run OpenPackager ----------\n"
     )
     ###########################################################################
     # Selector Logic
     ###########################################################################
     #ENTITY_RADIO_A = ITL.Radiobutton(FRONTEND_INTERFACE,
     # text=COLOR1, variable=ENTITY_SELECTOR,
     # value=1, command=RADIO_BUTTON_CALL)
     #ENTITY_RADIO_A.grid(column=0, row=5, sticky= ITL.W, columnspan=5)
     # Put the options in a loop
     #for col in range(3):
     # ENTITY_RADIO_OPTION = ITL.Radiobutton(CORE_FRAME,
     #     text=FE_COLORS[col], variable=ENTITY_SELECTOR_INT,
     # value=col, command=RADIO_BUTTON_CALL)
     # ENTITY_RADIO_OPTION.grid(column=col, row=12, sticky= ITL.W)

     print(
      "---------- STOP: SPECIAL 2 - Run OpenPackager ----------\n"
     )




Return HOME