omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Sabarblatoe

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Sabarblatoe

    @Sabarblatoe

    0
    Reputation
    677
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Sabarblatoe Unfollow Follow

    Latest posts made by Sabarblatoe

    • RE: Pyui button image options

      @Phuket2
      Hey thanks. I will definitely check that out. I really appreciate it. If it works the way I think it does then yes, it could be VERY helpfull. Thanks again.

      posted in Pythonista
      Sabarblatoe
      Sabarblatoe
    • RE: Pyui button image options

      Yes, you are correct. It does not show up in the designer & only when you run the program. Mine, however, was not working as expected. This is likely due to something not being installed correctly during my initial download of the app. Perhaps a crappy internet connection or my phone just being an ass, we will never know. After reinstalling the app the problem was fixed & the app was working as expected. You’re app, unlike mine, was working properly in the first place & thus would not require a reinstall. It was your initial post that prompted me to think the problem may be on my end seeing as how, during my research of this topic, I came across the same method you discribed multiple times. So again, thanks.

      posted in Pythonista
      Sabarblatoe
      Sabarblatoe
    • RE: Pyui button image options

      Ok...so I decided to delete & reinstall the app & boom. It works now so something must have just been missing. You do have to add the last part included in the second example but it works perfectly. Thanks again for your help.

      posted in Pythonista
      Sabarblatoe
      Sabarblatoe
    • RE: Pyui button image options

      Hey thanks for taking the time to reply. Unfortunately both examples were included in the plethora of things I have tried and I figured there was a good chance any custom changes may not show up in the designer . I literally spent an entire day googling & reading and tried everything I could find along with slight variations and combinations.

      posted in Pythonista
      Sabarblatoe
      Sabarblatoe
    • RE: Pyui button image options

      I’m not exactly sure what you mean, however, I will list a few of the many things I have tried in the attempt to get this to work.
      Adding {image_name : image.png} to the buttons Custom Attributes with & without “”.

      Changing the file format of the .pyui file to .json & editing the image_name : to the custom image.png.

      Editing the py file & adding button.background_image = ui.Image.named('filePath/image.PNG')\

      With just these three things I have tried every variation I can think of along with MAAAAAAAANY others. I found that I was able to get the image to show up as a button by editing a .py file manually but my goal is to do this using the .pyui file & the UI Design tool. I would like to be able to create the layout of my ui with the design to because positioning every thing manually is just excruciating.

      Anyway...Thanks in advance for any help that can be given.

      posted in Pythonista
      Sabarblatoe
      Sabarblatoe
    • Pyui button image options

      How do you give a button a custom icon within the UI Designer? In the attribute menu, under “image”, the only options accessible are the icons within the ionicons Black folder. i have tried more things than I can remember to get this working but have been unsuccessful. Is there a way to give a button a custom Icon using an image that you have added to the project folder.

      posted in Pythonista
      Sabarblatoe
      Sabarblatoe