Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Tags
    3. vanilla
    Log in to post

    • connor

      SOLVED Window without title bar?
      General Questions • user interface vanilla • • connor  

      5
      0
      Votes
      5
      Posts
      34
      Views

      connor

      Thanks a ton for the resource, Frederik! Looks like my tool window is now going to be a landscape image;)
    • ryan

      SOLVED Recreate native Glyph inspector panel sidebearing EditText input
      General Questions • user interface vanilla • • ryan  

      6
      1
      Votes
      6
      Posts
      90
      Views

      frederik

      That is True! for now the inspector is made for inspecting single glyphs. An extension can add a inspector pan with this behaviour!
    • bahman

      SOLVED Capture glyph cells on drag and drop
      General Questions • user interaction vanilla font overview • • bahman  

      2
      0
      Votes
      2
      Posts
      45
      Views

      gferreira

      hello @bahman, I gave it a try – this seems to work: from vanilla import Window, List from AppKit import NSDragOperationCopy from lib.settings import doodleSelectedGlyphIndexesPboardType class TestWindow: def __init__(self): self.w = Window((400, 200), 'test') self.w.list = List((10, 10, -10, -10), [], selfApplicationDropSettings=dict(type=doodleSelectedGlyphIndexesPboardType, allowDropOnRow=True, allowDropBetweenRows=True, operation=NSDragOperationCopy, callback=self.selfApplicationDropCallback)) self.w.open() def selfApplicationDropCallback(self, sender, dropInfo): isProposal = dropInfo["isProposal"] if not isProposal: glyphs = dropInfo["data"] source = dropInfo["source"] glyphNames = [source[glyphIndex].name for glyphIndex in glyphs] self.w.list.set(glyphNames) return True TestWindow() but using stuff from the lib is not recommended… maybe @frederik knows a better solution. cheers!
    • bahman

      SOLVED Keep reference to an arbitrary vanilla window for later use
      Problems & Bugs • scripting vanilla • • bahman  

      5
      1
      Votes
      5
      Posts
      38
      Views

      okaytype

      Well that doesn't surprise me since I have no idea what I'm doing. I'll read up on notifications. It would be helpful to know why this is bad though.
    • gferreira

      SOLVED drag and drop between vanilla lists
      General Questions • vanilla • • gferreira  

      4
      0
      Votes
      4
      Posts
      269
      Views

      gferreira

      @RafaŁ-Buchner that’s it!! thank you very much.
    • connor

      SOLVED Color List
      General Questions • vanilla colors • • connor  

      4
      0
      Votes
      4
      Posts
      276
      Views

      gferreira

      @connor happy to help. thank you & everyone else for asking questions, I’m learning a lot too!
    • RafaŁ Buchner

      SOLVED how to make vanilla.Window not disappear
      General Questions • user interface vanilla • • RafaŁ Buchner  

      4
      0
      Votes
      4
      Posts
      353
      Views

      RafaŁ Buchner

      @gferreira said in how to make vanilla.Window not disappear: self.w.getNSWindow().setHidesOnDeactivate_(False) Thanks Gustavo!!! That is exacly what I needed
    • anya

      SOLVED How to make StatusInteractivePopUpWindow active by default
      General Questions • user interaction vanilla mojo.ui • • anya  

      3
      0
      Votes
      3
      Posts
      340
      Views

      anya

      Thank you so much, Gustavo!
    • RafaŁ Buchner

      UNSOLVED Tracking “resize” event for current glyph window?
      General Questions • scripting vanilla events mojo.ui • • RafaŁ Buchner  

      2
      0
      Votes
      2
      Posts
      304
      Views

      frederik

      this brings a very old issue back... https://github.com/robotools/vanilla/blob/master/Lib/vanilla/vanillaWindows.py#L465-L466 follow up here
    • StephenNixon

      SOLVED Feature request: visual previews in the “Updates Found” popup
      Feature Requests • user interface vanilla update • • StephenNixon  

      10
      1
      Votes
      10
      Posts
      728
      Views

      gferreira

      @RafaŁ-Buchner that’s a vanilla Popover window. here’s an example: from vanilla import Window, List, Popover, TextBox class PopoverExample: def __init__(self): self.w = Window((120, 120)) self.w.list = List((0, 0, -0, -0), ['eggs', 'bacon', 'ham', 'beans'], selectionCallback=self.showPopoverCallback) self.w.open() def showPopoverCallback(self, sender): selection = sender.getSelection() if not selection: return index = sender.getSelection()[0] relativeRect = sender.getNSTableView().rectOfRow_(index) pop = Popover((140, 180)) pop.text = TextBox((10, 10, -10, -10), 'spam '*20) pop.open(parentView=sender, preferredEdge='right', relativeRect=relativeRect) PopoverExample() cheers!
    • gferreira

      RoboTools, a new umbrella for UFO-related code libraries
      Announcements • fontparts vanilla defcon robofab fontpens • • gferreira  

      1
      6
      Votes
      1
      Posts
      1093
      Views

      gferreira

      To all developers working with UFO-tools, here’s an important announcement: The RoboFab Developers organisation on GitHub has been retired, and a new organisation has been created in its place: RoboTools! From now on, RoboTools is the new home of FontParts, FontPens, and several other libraries originating from Type Supply. The main goal behind this change is to have more people involved in maintaining these libraries and providing support to users. Here’s the full list of libraries which are now under the RoboTools umbrella: compositor defcon defconAppKit extractor fontMath fontParts fontPens roboFab ufo2fdk vanilla Big thanks to Just van Rossum and Ben Kiel for setting everything up. Happy coding! here’s the original announcement by Just van Rossum on Twitter
    • jesentanadi

      SOLVED vanilla Window opening 2nd Window
      General Questions • vanilla • • jesentanadi  

      8
      0
      Votes
      8
      Posts
      738
      Views

      jesentanadi

      Oh, that's a good one. Thanks @frederik!
    • jesentanadi

      SOLVED vanilla.Slider width/height
      Problems & Bugs • vanilla • • jesentanadi  

      8
      0
      Votes
      8
      Posts
      807
      Views

      jesentanadi

      @gferreira Thanks for helping!
    • dovezea

      SOLVED Deleting multiple layers at a time.
      Feature Requests • scripting layers fontparts vanilla • • dovezea  

      4
      0
      Votes
      4
      Posts
      1172
      Views

      dovezea

      Thanks so much Frederik! That's exactly what I was missing!
    • A Former User

      SOLVED Vanilla object and drawing in TinyDrawbot
      General Questions • scripting vanilla drawbot canvas • • A Former User  

      5
      0
      Votes
      5
      Posts
      920
      Views

      A Former User

      Thanks, I'll try!
    • A Former User

      SOLVED Generate interface elements through iteration
      General Questions • scripting vanilla • • A Former User  

      3
      0
      Votes
      3
      Posts
      642
      Views

      A Former User

      Oh! This is quite embarrassing. Thanks!
    • philipp

      SOLVED Create checkboxes with loop?
      General Questions • scripting vanilla • • philipp  

      6
      0
      Votes
      6
      Posts
      930
      Views

      frederik

      sorry, its indeed CheckBox
    • joanca

      Vanilla set.text to TextBox
      General Questions • scripting vanilla • • joanca  

      2
      0
      Votes
      2
      Posts
      579
      Views

      frederik

      can you use the defconAppKit progressWindow? see http://code.typesupply.com/browser/packages/defconAppKit/trunk/Lib/defconAppKit/windows/progressWindow.py Cocoa is build up rather smart so it checks when a view is been updated frequently before redrawing it on screen. Although you can force a redraw: self.w.text.getNSTextField().display() after setting a string into the TextBox
    • jack_jennings

      SOLVED Font Collection Custom Tool
      General Questions • scripting user interface observers vanilla mojo • • jack_jennings  

      8
      0
      Votes
      8
      Posts
      1176
      Views

      frederik

      He I've written a proper vanilla patch which is already in the vanilla repo. This will be in the next update of RoboFont. It adds addToolBarItem and removeToolbarItem to a vanilla window object, able to manage toolbar items properly. see https://github.com/typesupply/vanilla/blob/master/Lib/vanilla/vanillaWindows.py#L631
    • franz

      SOLVED Disable single option of vanilla RadioGroup?
      General Questions • scripting vanilla • • franz  

      3
      0
      Votes
      3
      Posts
      558
      Views

      franz

      Yes, this is exactly what I need right now! Thanks so much Frederik! Franz